Remove redundancy in these arguments. props PeteMall, fixes #15920.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d12cf5f1b2
commit
291e6c8038
|
@ -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