Remove redundancy in these arguments. props PeteMall, fixes #15920.
git-svn-id: https://develop.svn.wordpress.org/trunk@17138 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
271dff32a8
commit
33e4eee845
@ -39,7 +39,7 @@ $action = $wp_list_table->current_action();
|
||||
$s = isset($_REQUEST['s']) ? $_REQUEST['s'] : '';
|
||||
|
||||
// Clean up request URI from temporary args for screen options/paging uri's to work as expected.
|
||||
$temp_args = array( 'enabled', 'disabled', 'deleted', 'error', 'enabled', 'disabled', 'deleted', 'error' );
|
||||
$temp_args = array( 'enabled', 'disabled', 'error' );
|
||||
$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );
|
||||
$referer = remove_query_arg( $temp_args, wp_get_referer() );
|
||||
|
||||
|
@ -28,7 +28,7 @@ $action = $wp_list_table->current_action();
|
||||
$s = isset($_REQUEST['s']) ? $_REQUEST['s'] : '';
|
||||
|
||||
// Clean up request URI from temporary args for screen options/paging uri's to work as expected.
|
||||
$temp_args = array( 'enabled', 'disabled', 'deleted', 'error', 'enabled', 'disabled', 'deleted', 'error' );
|
||||
$temp_args = array( 'enabled', 'disabled', 'deleted', 'error' );
|
||||
$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );
|
||||
$referer = remove_query_arg( $temp_args, wp_get_referer() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user