mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding Standards: Use strict comparison in wp-includes/class-wp-roles.php.
Follow-up to [25695], [41625]. Props aristath, poena, afercia, SergeyBiryukov. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2c56eef8a1
commit
d44c6e5fda
@ -192,7 +192,7 @@ class WP_Roles {
|
||||
update_option( $this->role_key, $this->roles );
|
||||
}
|
||||
|
||||
if ( get_option( 'default_role' ) == $role ) {
|
||||
if ( get_option( 'default_role' ) === $role ) {
|
||||
update_option( 'default_role', 'subscriber' );
|
||||
}
|
||||
}
|
||||
@ -359,7 +359,7 @@ class WP_Roles {
|
||||
return $wp_user_roles;
|
||||
}
|
||||
|
||||
if ( is_multisite() && get_current_blog_id() != $this->site_id ) {
|
||||
if ( is_multisite() && get_current_blog_id() !== $this->site_id ) {
|
||||
remove_action( 'switch_blog', 'wp_switch_roles_and_user', 1 );
|
||||
|
||||
$roles = get_blog_option( $this->site_id, $this->role_key, array() );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user