diff --git a/plugins/woocommerce/includes/admin/helper/class-wc-helper.php b/plugins/woocommerce/includes/admin/helper/class-wc-helper.php index 1d46774e267..142fe6f8489 100644 --- a/plugins/woocommerce/includes/admin/helper/class-wc-helper.php +++ b/plugins/woocommerce/includes/admin/helper/class-wc-helper.php @@ -797,7 +797,7 @@ class WC_Helper { ), isset( $_GET['redirect-to-wc-admin'] ) ) - ); + ); die(); } diff --git a/plugins/woocommerce/src/Internal/Admin/Marketplace.php b/plugins/woocommerce/src/Internal/Admin/Marketplace.php index 0a021822abf..0f2dea6529e 100644 --- a/plugins/woocommerce/src/Internal/Admin/Marketplace.php +++ b/plugins/woocommerce/src/Internal/Admin/Marketplace.php @@ -76,16 +76,19 @@ class Marketplace { } // Enqueue WordPress updates script to enable plugin and theme installs and updates. + // phpcs:disable WordPress.Security.NonceVerification.Recommended wp_enqueue_script( 'updates' ); + // phpcs:enable WordPress.Security.NonceVerification.Recommended } /** * Add a Woo Marketplace link to the plugin install action links. + * * @param array $tabs Plugins list tabs. * @return array */ public function add_woo_plugin_install_action_link( $tabs ) { - $tabs[self::MARKETPLACE_TAB_SLUG] = 'Woo'; + $tabs[ self::MARKETPLACE_TAB_SLUG ] = 'Woo'; return $tabs; } @@ -93,9 +96,11 @@ class Marketplace { * Open the Woo tab when the user clicks on the Woo link in the plugin installer. */ public function maybe_open_woo_tab() { + // phpcs:disable WordPress.Security.NonceVerification.Recommended if ( ! isset( $_GET['tab'] ) || self::MARKETPLACE_TAB_SLUG !== $_GET['tab'] ) { return; } + // phpcs:enable WordPress.Security.NonceVerification.Recommended $woo_url = add_query_arg( array(