Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in `wp-admin/includes/class-w…
Browse files Browse the repository at this point in the history
…p-ms-users-list-table.php`.

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

See #54728.

git-svn-id: https://develop.svn.wordpress.org/trunk@52583 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jan 16, 2022
1 parent 9603988 commit 815759d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-admin/includes/class-wp-ms-users-list-table.php
Expand Up @@ -400,16 +400,16 @@ public function column_blogs( $user ) {
$actions['edit'] = '<a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) . '">' . __( 'Edit' ) . '</a>';

$class = '';
if ( 1 == $val->spam ) {
if ( 1 === (int) $val->spam ) {
$class .= 'site-spammed ';
}
if ( 1 == $val->mature ) {
if ( 1 === (int) $val->mature ) {
$class .= 'site-mature ';
}
if ( 1 == $val->deleted ) {
if ( 1 === (int) $val->deleted ) {
$class .= 'site-deleted ';
}
if ( 1 == $val->archived ) {
if ( 1 === (int) $val->archived ) {
$class .= 'site-archived ';
}

Expand Down

0 comments on commit 815759d

Please sign in to comment.