PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.7.1
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.7.1
2.7.1 2.7.2 2.7.0 2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 All 141 releases
← All changes | admin/class-metasync-html-visual-editor.php +6 -3 2.7.0 → 2.7.1 View file →
@@ -117,9 +117,9 @@
117 117 * stable to match against.
118 118 */
119 119 public function maybe_enqueue_editor_assets()
120 120 {
121 - $page = isset($_GET['page']) ? sanitize_text_field(wp_unslash($_GET['page'])) : '';
121 + $page = isset($_GET['page']) ? sanitize_text_field(wp_unslash($_GET['page'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check to enqueue editor assets
122 122
123 123 if ($page !== $this->get_editor_page_slug()) {
124 124 return;
125 125 }
@@ -279,8 +279,9 @@
279 279
280 280 $actions['edit_html'] = sprintf(
281 281 '<a href="%s" title="%s">%s</a>',
282 282 esc_url($edit_url),
283 + /* translators: %s: company name (whitelabel-aware). */
283 284 esc_attr(sprintf(__('Edit with %s Visual Editor', 'metasync'), $label)),
284 285 __('Edit HTML', 'metasync')
285 286 );
286 287
@@ -292,8 +293,9 @@
292 293 */
293 294 public function add_editor_page()
294 295 {
295 296 $label = Metasync::get_whitelabel_company_name() ?: 'SearchAtlas';
297 + /* translators: %s: company name (whitelabel-aware). */
296 298 $page_title = sprintf(__('%s HTML Editor', 'metasync'), $label);
297 299
298 300 add_submenu_page(
299 301 '', // Hidden from menu
@@ -315,9 +317,9 @@
315 317 wp_die(__('You do not have sufficient permissions to access this page.', 'metasync'));
316 318 }
317 319
318 320 // Get post ID
319 - $post_id = isset($_GET['post_id']) ? intval($_GET['post_id']) : 0;
321 + $post_id = isset($_GET['post_id']) ? intval($_GET['post_id']) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only post ID, capability checked, view only
320 322
321 323 if (!$post_id) {
322 324 wp_die(__('Invalid page ID.', 'metasync'));
323 325 }
@@ -459,9 +461,9 @@
459 461 $editor_style_deps,
460 462 $this->version
461 463 );
462 464
463 - $post_id = isset($_GET['post_id']) ? intval($_GET['post_id']) : 0;
465 + $post_id = isset($_GET['post_id']) ? intval($_GET['post_id']) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only post ID passed to script data
464 466
465 467 // Localize script with data
466 468 wp_localize_script('metasync-html-editor', 'metasyncEditor', array(
467 469 'ajax_url' => admin_url('admin-ajax.php'),
@@ -494,8 +496,9 @@
494 496 'load_failed_title' => __('The visual editor could not start', 'metasync'),
495 497 'load_failed_core' => __('The visual editor library could not be loaded, so this page cannot be edited visually. Reload the page, and if the problem continues check whether a browser extension, proxy or content security policy is blocking plugin scripts.', 'metasync'),
496 498 'load_failed_blocks' => __('The editor loaded, but its extra block library is unavailable, so the Blocks panel only offers the built-in blocks. Existing page content can still be edited and saved normally.', 'metasync'),
497 499 'load_failed_init' => __('The visual editor failed to start while loading this page. Reload to try again; the saved page content has not been changed.', 'metasync'),
500 + /* translators: %s: name of the missing component. */
498 501 'load_failed_detail' => __('Missing component: %s', 'metasync'),
499 502 'reload' => __('Reload page', 'metasync'),
500 503 'dismiss' => __('Dismiss', 'metasync'),
501 504 'save_disabled' => __('Saving is disabled because the editor did not load', 'metasync'),