Make WordPress Core

Changeset 56438


Ignore:
Timestamp:
08/24/2023 11:17:06 AM (11 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [12603], [43548], [43654], [44472].

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

File:
1 edited

Legend:

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

    r56434 r56438  
    883883    $stack = array_reverse( $stack ); // Last added directories are deepest.
    884884    foreach ( (array) $stack as $dir ) {
    885         if ( $dir != $top_dir ) {
     885        if ( $dir !== $top_dir ) {
    886886            @rmdir( $dir );
    887887        }
     
    11311131    }
    11321132
    1133     if ( $new_site->network_id != $old_site->network_id ) {
     1133    if ( $new_site->network_id !== $old_site->network_id ) {
    11341134        wp_maybe_update_network_site_counts( $new_site->network_id );
    11351135        wp_maybe_update_network_site_counts( $old_site->network_id );
     
    11541154    }
    11551155
    1156     if ( $new_site->spam != $old_site->spam ) {
    1157         if ( 1 == $new_site->spam ) {
     1156    if ( $new_site->spam !== $old_site->spam ) {
     1157        if ( '1' === $new_site->spam ) {
    11581158
    11591159            /**
     
    11781178    }
    11791179
    1180     if ( $new_site->mature != $old_site->mature ) {
    1181         if ( 1 == $new_site->mature ) {
     1180    if ( $new_site->mature !== $old_site->mature ) {
     1181        if ( '1' === $new_site->mature ) {
    11821182
    11831183            /**
     
    12021202    }
    12031203
    1204     if ( $new_site->archived != $old_site->archived ) {
    1205         if ( 1 == $new_site->archived ) {
     1204    if ( $new_site->archived !== $old_site->archived ) {
     1205        if ( '1' === $new_site->archived ) {
    12061206
    12071207            /**
     
    12261226    }
    12271227
    1228     if ( $new_site->deleted != $old_site->deleted ) {
    1229         if ( 1 == $new_site->deleted ) {
     1228    if ( $new_site->deleted !== $old_site->deleted ) {
     1229        if ( '1' === $new_site->deleted ) {
    12301230
    12311231            /**
     
    12501250    }
    12511251
    1252     if ( $new_site->public != $old_site->public ) {
     1252    if ( $new_site->public !== $old_site->public ) {
    12531253
    12541254        /**
Note: See TracChangeset for help on using the changeset viewer.