mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +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. 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:
parent
ba7c01a09c
commit
df89489ac6
@ -568,7 +568,7 @@ function wp_list_categories( $args = '' ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Descendants of exclusions should be excluded too.
|
// Descendants of exclusions should be excluded too.
|
||||||
if ( true == $parsed_args['hierarchical'] ) {
|
if ( $parsed_args['hierarchical'] ) {
|
||||||
$exclude_tree = array();
|
$exclude_tree = array();
|
||||||
|
|
||||||
if ( $parsed_args['exclude_tree'] ) {
|
if ( $parsed_args['exclude_tree'] ) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user