Merge pull request #13116 from akashsonic/patch-3

Added exit after wp_safe_redirect.
This commit is contained in:
Mike Jolley 2017-02-08 13:15:54 +00:00 committed by GitHub
commit bf822a5889
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class WC_Install {
if ( ! empty( $_GET['force_update_woocommerce'] ) ) { if ( ! empty( $_GET['force_update_woocommerce'] ) ) {
do_action( 'wp_wc_updater_cron' ); do_action( 'wp_wc_updater_cron' );
wp_safe_redirect( admin_url( 'admin.php?page=wc-settings' ) ); wp_safe_redirect( admin_url( 'admin.php?page=wc-settings' ) );
exit;
} }
} }