From fd846534b63dbf8b0187e4baad6b4b6513621648 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 5 Aug 2023 14:00:56 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@56360 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index dcc32c417f..bfb7f6d85c 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -568,7 +568,7 @@ function wp_list_categories( $args = '' ) { } // Descendants of exclusions should be excluded too. - if ( true == $parsed_args['hierarchical'] ) { + if ( $parsed_args['hierarchical'] ) { $exclude_tree = array(); if ( $parsed_args['exclude_tree'] ) {