diff --git a/includes/admin/views/html-notice-updating.php b/includes/admin/views/html-notice-updating.php index 39f1e907c60..de22ec43e6b 100644 --- a/includes/admin/views/html-notice-updating.php +++ b/includes/admin/views/html-notice-updating.php @@ -8,19 +8,9 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } - -$force_update_url = wp_nonce_url( - add_query_arg( 'force_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ), - 'wc_force_db_update', - 'wc_force_db_update_nonce' -); - ?>

- - - - +

diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index ca1f878ccd0..2921ec7b945 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -239,17 +239,6 @@ class WC_Install { self::update(); WC_Admin_Notices::add_notice( 'update' ); } - if ( ! empty( $_GET['force_update_woocommerce'] ) ) { // WPCS: input var ok. - check_admin_referer( 'wc_force_db_update', 'wc_force_db_update_nonce' ); - $blog_id = get_current_blog_id(); - - // Used to fire an action added in WP_Background_Process::_construct() that calls WP_Background_Process::handle_cron_healthcheck(). - // This method will make sure the database updates are executed even if cron is disabled. Nothing will happen if the updates are already running. - do_action( 'wp_' . $blog_id . '_wc_updater_cron' ); - - wp_safe_redirect( admin_url( 'admin.php?page=wc-settings' ) ); - exit; - } } /**