Redirect to product screen if referer is missing.

Fixes #10713
This commit is contained in:
Mike Jolley 2016-04-18 11:48:57 +01:00
parent 3112c76939
commit dd99c7fb17
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,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=shop_order' ) );
wp_safe_redirect( wp_get_referer() ? remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids' ), wp_get_referer() ) : admin_url( 'edit.php?post_type=product' ) );
die();
}