Make WordPress Core

Changeset 52583


Ignore:
Timestamp:
01/16/2022 08:14:39 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/class-wp-ms-users-list-table.php.

Follow-up to [16607], [32630], [32757], [47219].

See #54728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r51737 r52583  
    401401
    402402            $class = '';
    403             if ( 1 == $val->spam ) {
     403            if ( 1 === (int) $val->spam ) {
    404404                $class .= 'site-spammed ';
    405405            }
    406             if ( 1 == $val->mature ) {
     406            if ( 1 === (int) $val->mature ) {
    407407                $class .= 'site-mature ';
    408408            }
    409             if ( 1 == $val->deleted ) {
     409            if ( 1 === (int) $val->deleted ) {
    410410                $class .= 'site-deleted ';
    411411            }
    412             if ( 1 == $val->archived ) {
     412            if ( 1 === (int) $val->archived ) {
    413413                $class .= 'site-archived ';
    414414            }
Note: See TracChangeset for help on using the changeset viewer.