Fix logic inversion. see #15699.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b624542cc5
commit
898e58d568
|
@ -13,7 +13,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
|||
|
||||
function WP_Users_List_Table() {
|
||||
$screen = get_current_screen();
|
||||
$this->is_site_users = ( 'site-users-network' == $screen->id ) ? true : false;
|
||||
$this->is_site_users = 'site-users-network' == $screen->id;
|
||||
|
||||
if ( $this->is_site_users )
|
||||
$this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
|
@ -180,7 +180,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
|||
|
||||
function display_rows() {
|
||||
// Query the post counts for this page
|
||||
if ( $this->is_site_users )
|
||||
if ( ! $this->is_site_users )
|
||||
$post_counts = count_many_users_posts( array_keys( $this->items ) );
|
||||
|
||||
$style = '';
|
||||
|
|
Loading…
Reference in New Issue