Changeset 57874 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 03/24/2024 01:02:04 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r57787 r57874 188 188 if ( $details ) { 189 189 if ( ! is_object( $details ) ) { 190 if ( -1 == $details ) {190 if ( -1 === $details ) { 191 191 return false; 192 192 } else { … … 208 208 if ( $details ) { 209 209 if ( ! is_object( $details ) ) { 210 if ( -1 == $details ) {210 if ( -1 === $details ) { 211 211 return false; 212 212 } else { … … 361 361 } 362 362 363 if ( get_current_blog_id() == $id ) {363 if ( get_current_blog_id() === $id ) { 364 364 return get_option( $option, $default_value ); 365 365 } … … 408 408 } 409 409 410 if ( get_current_blog_id() == $id ) {410 if ( get_current_blog_id() === $id ) { 411 411 return add_option( $option, $value ); 412 412 } … … 435 435 } 436 436 437 if ( get_current_blog_id() == $id ) {437 if ( get_current_blog_id() === $id ) { 438 438 return delete_option( $option ); 439 439 } … … 464 464 } 465 465 466 if ( get_current_blog_id() == $id ) {466 if ( get_current_blog_id() === $id ) { 467 467 return update_option( $option, $value ); 468 468 } … … 512 512 * the extra unnecessary work 513 513 */ 514 if ( $new_blog_id == $prev_blog_id ) {514 if ( $new_blog_id === $prev_blog_id ) { 515 515 /** 516 516 * Fires when the blog is switched. … … 615 615 $prev_blog_id = get_current_blog_id(); 616 616 617 if ( $new_blog_id == $prev_blog_id ) {617 if ( $new_blog_id === $prev_blog_id ) { 618 618 /** This filter is documented in wp-includes/ms-blogs.php */ 619 619 do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'restore' ); … … 694 694 */ 695 695 function wp_switch_roles_and_user( $new_site_id, $old_site_id ) { 696 if ( $new_site_id == $old_site_id ) {696 if ( $new_site_id === $old_site_id ) { 697 697 return; 698 698 }
Note: See TracChangeset
for help on using the changeset viewer.