mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
List Tables: when comparing string literals (non-numeric in nature) against vars, strict comparison can/should be used.
Props wonderboymusic, Viper007Bond. Fixes #21249. git-svn-id: https://develop.svn.wordpress.org/trunk@34383 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -45,7 +45,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
|
||||
) );
|
||||
|
||||
$this->is_site_users = 'site-users-network' == $this->screen->id;
|
||||
$this->is_site_users = 'site-users-network' === $this->screen->id;
|
||||
|
||||
if ( $this->is_site_users )
|
||||
$this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
@@ -169,7 +169,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
|
||||
$class = '';
|
||||
|
||||
if ( $this_role == $role ) {
|
||||
if ( $this_role === $role ) {
|
||||
$class = ' class="current"';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user