From df89489ac6cfdbc60b086d5d0cc4401bf86b5412 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 5 Aug 2023 14:02:26 +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. Built from https://develop.svn.wordpress.org/trunk@56360 git-svn-id: http://core.svn.wordpress.org/trunk@55872 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index dcc32c417f..bfb7f6d85c 100644 --- a/wp-includes/category-template.php +++ b/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'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 40cb179f64..bbf457ab7f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56359'; +$wp_version = '6.4-alpha-56360'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.