Changeset 56184 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 07/10/2023 12:51:51 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r56180 r56184 501 501 public function get_role_caps() { 502 502 $switch_site = false; 503 if ( is_multisite() && get_current_blog_id() != $this->site_id ) {503 if ( is_multisite() && get_current_blog_id() !== $this->site_id ) { 504 504 $switch_site = true; 505 505 … … 603 603 */ 604 604 public function set_role( $role ) { 605 if ( 1 === count( $this->roles ) && current( $this->roles ) == $role ) {605 if ( 1 === count( $this->roles ) && current( $this->roles ) === $role ) { 606 606 return; 607 607 }
Note: See TracChangeset
for help on using the changeset viewer.