| @@ -312,9 +312,9 @@ | ||
| 312 | 312 | * @param string $message Message to log. |
| 313 | 313 | */ |
| 314 | 314 | protected function log($message) |
| 315 | 315 | { |
| 316 | - error_log('[MetaSync HOST_BLOCKING] ' . $message); | |
| 316 | + error_log('[MetaSync HOST_BLOCKING] ' . $message); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- genuine failure path, bounded, no secrets | |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | /** |
| 320 | 320 | * Turn a wp_remote_* return value into a blocked / not-blocked / inconclusive verdict. |
| @@ -633,13 +633,13 @@ | ||
| 633 | 633 | * @return bool |
| 634 | 634 | */ |
| 635 | 635 | public function is_plugin_admin_page() |
| 636 | 636 | { |
| 637 | - if (empty($_GET['page'])) { | |
| 637 | + if (empty($_GET['page'])) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check for notice placement | |
| 638 | 638 | return false; |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | - $page = sanitize_text_field(wp_unslash($_GET['page'])); | |
| 641 | + $page = sanitize_text_field(wp_unslash($_GET['page'])); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check for notice placement | |
| 642 | 642 | $slug = class_exists('Metasync_Admin') && !empty(Metasync_Admin::$page_slug) |
| 643 | 643 | ? Metasync_Admin::$page_slug |
| 644 | 644 | : 'searchatlas'; |
| 645 | 645 | |
| @@ -709,8 +709,9 @@ | ||
| 709 | 709 | <?php if ($compatibility_url !== '') : ?> |
| 710 | 710 | <a href="<?php echo esc_url($compatibility_url); ?>"><?php esc_html_e('View details and re-run the connectivity test', 'metasync'); ?></a> |
| 711 | 711 | · |
| 712 | 712 | <?php endif; ?> |
| 713 | + <?php /* translators: %s: date and time of the last check. */ ?> | |
| 713 | 714 | <?php echo esc_html(sprintf(__('Last checked: %s', 'metasync'), $result['checked_at'])); ?> |
| 714 | 715 | </p> |
| 715 | 716 | </div> |
| 716 | 717 | </div> |