get_last_scan_meta() : array('triggeredAt' => null, 'sitemapUrl' => ''); $schedule = $client ? $client->get_scan_schedule() : null; $sched_ok = is_array($schedule); // A refused request is not a scan: keep the first-scan label until one // actually started (server stamp) or was accepted/unconfirmed locally. $already_scanned = ($sched_ok && !empty($schedule['lastScanAt'])) || (!empty($last_meta['triggeredAt']) && (!isset($last_meta['state']) || $last_meta['state'] !== 'blocked')); if ($context === 'wizard') { $already_scanned = false; } $btn_label_first = __('Scan now', 'allaccessible'); $btn_label_again = __('Run scan again', 'allaccessible'); $primary_button = $already_scanned ? $btn_label_again : $btn_label_first; $page_count = 0; if (function_exists('wp_count_posts')) { $page_counts = wp_count_posts('page'); $post_counts = wp_count_posts('post'); $page_count = (int) ($page_counts->publish ?? 0) + (int) ($post_counts->publish ?? 0); } $body_padding = $compact ? 'var(--aacx-space-4)' : 'var(--aacx-space-6)'; ?>
0) : ?>
0 / —