| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | $version, |
| 50 | 50 | 'all' |
| 51 | 51 | ); |
| 52 | 52 | |
| 53 | - if (isset($_GET['page']) && strpos($_GET['page'], '-setup-wizard') !== false) { | |
| 53 | + if (isset($_GET['page']) && strpos($_GET['page'], '-setup-wizard') !== false) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check to enqueue wizard assets | |
| 54 | 54 | wp_enqueue_style( |
| 55 | 55 | $plugin_name . '-setup-wizard', |
| 56 | 56 | $admin_dir_url . 'css/metasync-setup-wizard.css', |
| 57 | 57 | array($plugin_name . '-dashboard'), |
| @@ -131,8 +131,10 @@ | ||
| 131 | 131 | 'admin_url'=>admin_url('admin.php'), |
| 132 | 132 | 'sa_connect_nonce' => $sa_connect_nonce, |
| 133 | 133 | 'reset_auth_nonce' => wp_create_nonce('metasync_reset_auth_nonce'), |
| 134 | 134 | 'burst_ping_nonce' => wp_create_nonce('metasync_burst_ping'), |
| 135 | + 'clear_otto_cache_nonce' => wp_create_nonce('metasync_clear_otto_cache'), | |
| 136 | + 'lglogin_nonce' => wp_create_nonce('metasync_lglogin'), | |
| 135 | 137 | 'heartbeat_state' => $heartbeat_state, |
| 136 | 138 | 'dashboard_domain' => Metasync_Admin::get_effective_dashboard_domain(), |
| 137 | 139 | 'support_email' => Metasync::SUPPORT_EMAIL, |
| 138 | 140 | 'documentation_domain' => Metasync::DOCUMENTATION_DOMAIN, |
| @@ -188,9 +190,9 @@ | ||
| 188 | 190 | }); |
| 189 | 191 | "; |
| 190 | 192 | wp_add_inline_script($plugin_name, $inline_script); |
| 191 | 193 | |
| 192 | - if (isset($_GET['page']) && strpos($_GET['page'], '-setup-wizard') !== false) { | |
| 194 | + if (isset($_GET['page']) && strpos($_GET['page'], '-setup-wizard') !== false) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check to enqueue wizard assets | |
| 193 | 195 | wp_enqueue_script( |
| 194 | 196 | $plugin_name . '-setup-wizard', |
| 195 | 197 | $admin_dir_url . 'js/metasync-setup-wizard.js', |
| 196 | 198 | array('jquery'), |