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
This commit is contained in:
Sergey Biryukov 2023-08-05 14:02:26 +00:00
parent ba7c01a09c
commit df89489ac6
2 changed files with 2 additions and 2 deletions

View File

@ -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'] ) {

View File

@ -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.