Merge pull request #20179 from woocommerce/fix/19135

Just use exit() in AJAX endpoints used to redirect users
This commit is contained in:
Mike Jolley 2018-05-23 14:59:13 +01:00 committed by GitHub
commit 216dce4fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ class WC_AJAX {
}
wp_safe_redirect( wp_get_referer() ? remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids' ), wp_get_referer() ) : admin_url( 'edit.php?post_type=product' ) );
wp_die();
exit;
}
/**
@ -495,7 +495,7 @@ class WC_AJAX {
}
wp_safe_redirect( wp_get_referer() ? wp_get_referer() : admin_url( 'edit.php?post_type=shop_order' ) );
wp_die();
exit;
}
/**