Merge pull request #13101 from woocommerce/fix-13051

Exit after redirect to prevent incorrect headers being set by wp_die
This commit is contained in:
Mike Jolley 2017-02-06 19:12:17 +01:00 committed by GitHub
commit b14d1ecbc9
1 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,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;
}
/**
@ -447,7 +447,7 @@ class WC_AJAX {
}
wp_safe_redirect( wp_get_referer() ? wp_get_referer() : admin_url( 'edit.php?post_type=shop_order' ) );
wp_die();
exit;
}
/**