Remove extra spaces between function names and brackets
These were introduced when making list table view modes sticky. See #16774, #34365. git-svn-id: https://develop.svn.wordpress.org/trunk@36572 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c3c16e7c6e
commit
a16d97039b
@ -71,9 +71,9 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||
|
||||
if ( ! empty( $_REQUEST['mode'] ) ) {
|
||||
$mode = $_REQUEST['mode'] === 'excerpt' ? 'excerpt' : 'list';
|
||||
set_user_setting ( 'sites_list_mode', $mode );
|
||||
set_user_setting( 'sites_list_mode', $mode );
|
||||
} else {
|
||||
$mode = get_user_setting ( 'sites_list_mode', 'list' );
|
||||
$mode = get_user_setting( 'sites_list_mode', 'list' );
|
||||
}
|
||||
|
||||
$per_page = $this->get_items_per_page( 'sites_network_per_page' );
|
||||
|
@ -83,9 +83,9 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
|
||||
if ( ! empty( $_REQUEST['mode'] ) ) {
|
||||
$mode = $_REQUEST['mode'] === 'excerpt' ? 'excerpt' : 'list';
|
||||
set_user_setting ( 'network_users_list_mode', $mode );
|
||||
set_user_setting( 'network_users_list_mode', $mode );
|
||||
} else {
|
||||
$mode = get_user_setting ( 'network_users_list_mode', 'list' );
|
||||
$mode = get_user_setting( 'network_users_list_mode', 'list' );
|
||||
}
|
||||
|
||||
/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
|
||||
|
@ -174,9 +174,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
|
||||
if ( ! empty( $_REQUEST['mode'] ) ) {
|
||||
$mode = $_REQUEST['mode'] === 'excerpt' ? 'excerpt' : 'list';
|
||||
set_user_setting ( 'posts_list_mode', $mode );
|
||||
set_user_setting( 'posts_list_mode', $mode );
|
||||
} else {
|
||||
$mode = get_user_setting ( 'posts_list_mode', 'list' );
|
||||
$mode = get_user_setting( 'posts_list_mode', 'list' );
|
||||
}
|
||||
|
||||
$this->is_trash = isset( $_REQUEST['post_status'] ) && $_REQUEST['post_status'] === 'trash';
|
||||
|
Loading…
Reference in New Issue
Block a user