mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'] ) {
|
||||
|
||||
Reference in New Issue
Block a user