Make WordPress Core

Changeset 57874

Timestamp:
03/24/2024 01:02:04 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-includes/ms-blogs.php.

Follow-up to [12603], [12948], [13125], [13126], [21480], [21485], [38457], [41625], [43654], [43655], [45794].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r57787 r57874  
    188188    if ( $details ) {
    189189        if ( ! is_object( $details ) ) {
    190             if ( -1 == $details ) {
     190            if ( -1 == $details ) {
    191191                return false;
    192192            } else {
     
    208208        if ( $details ) {
    209209            if ( ! is_object( $details ) ) {
    210                 if ( -1 == $details ) {
     210                if ( -1 == $details ) {
    211211                    return false;
    212212                } else {
     
    361361    }
    362362
    363     if ( get_current_blog_id() == $id ) {
     363    if ( get_current_blog_id() == $id ) {
    364364        return get_option( $option, $default_value );
    365365    }
     
    408408    }
    409409
    410     if ( get_current_blog_id() == $id ) {
     410    if ( get_current_blog_id() == $id ) {
    411411        return add_option( $option, $value );
    412412    }
     
    435435    }
    436436
    437     if ( get_current_blog_id() == $id ) {
     437    if ( get_current_blog_id() == $id ) {
    438438        return delete_option( $option );
    439439    }
     
    464464    }
    465465
    466     if ( get_current_blog_id() == $id ) {
     466    if ( get_current_blog_id() == $id ) {
    467467        return update_option( $option, $value );
    468468    }
     
    512512     * the extra unnecessary work
    513513     */
    514     if ( $new_blog_id == $prev_blog_id ) {
     514    if ( $new_blog_id == $prev_blog_id ) {
    515515        /**
    516516         * Fires when the blog is switched.
     
    615615    $prev_blog_id = get_current_blog_id();
    616616
    617     if ( $new_blog_id == $prev_blog_id ) {
     617    if ( $new_blog_id == $prev_blog_id ) {
    618618        /** This filter is documented in wp-includes/ms-blogs.php */
    619619        do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'restore' );
     
    694694 */
    695695function 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 ) {
    697697        return;
    698698    }
Note: See TracChangeset for help on using the changeset viewer.