| @@ -899,10 +899,10 @@ | ||
| 899 | 899 | // WordPress cannot resolve titles for pages registered under an empty |
| 900 | 900 | // parent, even though those pages remain reachable by URL. Restore the |
| 901 | 901 | // standard admin title format for our registered pages only. |
| 902 | 902 | add_filter('admin_title', function($admin_title, $title) use (&$admin_page_titles) { |
| 903 | - $current_page = isset($_GET['page']) && is_string($_GET['page']) | |
| 904 | - ? sanitize_text_field(wp_unslash($_GET['page'])) | |
| 903 | + $current_page = isset($_GET['page']) && is_string($_GET['page']) // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page slug for the admin title | |
| 904 | + ? sanitize_text_field(wp_unslash($_GET['page'])) // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page slug for the admin title | |
| 905 | 905 | : ''; |
| 906 | 906 | |
| 907 | 907 | if (empty($title) && isset($admin_page_titles[$current_page])) { |
| 908 | 908 | $site_title = is_network_admin() || is_user_admin() |
| @@ -910,9 +910,9 @@ | ||
| 910 | 910 | : get_bloginfo('name'); |
| 911 | 911 | |
| 912 | 912 | $admin_title = sprintf( |
| 913 | 913 | /* translators: 1: Admin page title, 2: Site or network title. */ |
| 914 | - __('%1$s ‹ %2$s — WordPress'), | |
| 914 | + __('%1$s ‹ %2$s — WordPress', 'metasync'), | |
| 915 | 915 | $admin_page_titles[$current_page], |
| 916 | 916 | $site_title |
| 917 | 917 | ); |
| 918 | 918 | } |
| @@ -1457,10 +1457,10 @@ | ||
| 1457 | 1457 | |
| 1458 | 1458 | <?php |
| 1459 | 1459 | $page_slug = Metasync_Admin::$page_slug; |
| 1460 | 1460 | $is_plugin_page = ( |
| 1461 | - (isset($_GET['page']) && strpos($_GET['page'], $page_slug) !== false) || | |
| 1462 | - (isset($_GET['page']) && strpos($_GET['page'], 'searchatlas') !== false) | |
| 1461 | + (isset($_GET['page']) && strpos($_GET['page'], $page_slug) !== false) || // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check for an inline config script | |
| 1462 | + (isset($_GET['page']) && strpos($_GET['page'], 'searchatlas') !== false) // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check for an inline config script | |
| 1463 | 1463 | ); |
| 1464 | 1464 | if ($is_plugin_page): |
| 1465 | 1465 | ?> |
| 1466 | 1466 | <script type="text/javascript"> |