Make WordPress Core


Ignore:
Timestamp:
08/05/2023 02:00:56 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rewrite loose comparison in wp_list_categories().

A truthy check is more in line with similar checks elsewhere, including conditionals in the same exact code block.

Follow-up to [10275], [34696].

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

File:
1 edited

Legend:

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

    r55222 r56360  
    569569
    570570    // Descendants of exclusions should be excluded too.
    571     if ( true == $parsed_args['hierarchical'] ) {
     571    if ( $parsed_args['hierarchical'] ) {
    572572        $exclude_tree = array();
    573573
Note: See TracChangeset for help on using the changeset viewer.