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:
commit
b14d1ecbc9
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue