Make WordPress Core

Changeset 55880


Ignore:
Timestamp:
06/05/2023 11:14:53 AM (16 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [3511], [4173], [5525].

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

File:
1 edited

Legend:

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

    r53827 r55880  
    150150        $path        = '/' . $leaf_path;
    151151        $curcategory = $category;
    152         while ( ( 0 != $curcategory->parent ) && ( $curcategory->parent != $curcategory->term_id ) ) {
     152
     153        while ( ( 0 !== $curcategory->parent ) && ( $curcategory->parent !== $curcategory->term_id ) ) {
    153154            $curcategory = get_term( $curcategory->parent, 'category' );
    154155
     
    160161        }
    161162
    162         if ( $path == $full_path ) {
     163        if ( $path === $full_path ) {
    163164            $category = get_term( $category->term_id, 'category', $output );
    164165            _make_cat_compat( $category );
Note: See TracChangeset for help on using the changeset viewer.