Make WordPress Core

Changeset 57877


Ignore:
Timestamp:
03/25/2024 05:17:06 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [12602], [12688], [12896], [27359], [37475].

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

File:
1 edited

Legend:

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

    r57801 r57877  
    9393    $blog = get_site();
    9494
    95     if ( '1' == $blog->deleted ) {
     95    if ( '1' === $blog->deleted ) {
    9696        if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) {
    9797            return WP_CONTENT_DIR . '/blog-deleted.php';
     
    101101    }
    102102
    103     if ( '2' == $blog->deleted ) {
     103    if ( '2' === $blog->deleted ) {
    104104        if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
    105105            return WP_CONTENT_DIR . '/blog-inactive.php';
     
    116116    }
    117117
    118     if ( '1' == $blog->archived || '1' == $blog->spam ) {
     118    if ( '1' === $blog->archived || '1' === $blog->spam ) {
    119119        if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
    120120            return WP_CONTENT_DIR . '/blog-suspended.php';
     
    378378
    379379    // The network declared by the site trumps any constants.
    380     if ( $current_blog && $current_blog->site_id != $current_site->id ) {
     380    if ( $current_blog && (int) $current_blog->site_id !== $current_site->id ) {
    381381        $current_site = WP_Network::get_instance( $current_blog->site_id );
    382382    }
Note: See TracChangeset for help on using the changeset viewer.