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
This commit is contained in:
Sergey Biryukov
2023-08-05 14:00:56 +00:00
parent 847328068d
commit fd846534b6

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