Make WordPress Core

Changeset 55511 for trunk


Ignore:
Timestamp:
03/10/2023 07:02:34 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/taxonomy.php.

Follow-up to [4490], [9481], [55190].

Props ankitmaru, costdev, dhrumilk.
Fixes #57859.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/taxonomy.php

    r55190 r55511  
    189189    $cat_id = (int) $catarr['cat_ID'];
    190190
    191     if ( isset( $catarr['category_parent'] ) && ( $cat_id == $catarr['category_parent'] ) ) {
     191    if ( isset( $catarr['category_parent'] ) && ( $cat_id === (int) $catarr['category_parent'] ) ) {
    192192        return false;
    193193    }
Note: See TracChangeset for help on using the changeset viewer.