Changeset 56321
- Timestamp:
- 07/28/2023 11:35:17 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-roles.php
r54673 r56321 193 193 } 194 194 195 if ( get_option( 'default_role' ) == $role ) {195 if ( get_option( 'default_role' ) === $role ) { 196 196 update_option( 'default_role', 'subscriber' ); 197 197 } … … 360 360 } 361 361 362 if ( is_multisite() && get_current_blog_id() != $this->site_id ) {362 if ( is_multisite() && get_current_blog_id() !== $this->site_id ) { 363 363 remove_action( 'switch_blog', 'wp_switch_roles_and_user', 1 ); 364 364
Note: See TracChangeset
for help on using the changeset viewer.