mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,14 +12,14 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
var $site_id;
|
||||
var $is_site_users;
|
||||
|
||||
function WP_Users_List_Table() {
|
||||
function __construct() {
|
||||
$screen = get_current_screen();
|
||||
$this->is_site_users = 'site-users-network' == $screen->id;
|
||||
|
||||
if ( $this->is_site_users )
|
||||
$this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
|
||||
parent::WP_List_Table( array(
|
||||
parent::__construct( array(
|
||||
'singular' => 'user',
|
||||
'plural' => 'users'
|
||||
) );
|
||||
|
||||
Reference in New Issue
Block a user