mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
Docs: Spell "falsey" in a consistent way.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48275 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -265,7 +265,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
|
||||
$total_terms = wp_count_terms( $this->taxonomy, $count_args );
|
||||
|
||||
// wp_count_terms() can return a falsy value when the term has no children.
|
||||
// wp_count_terms() can return a falsey value when the term has no children.
|
||||
if ( ! $total_terms ) {
|
||||
$total_terms = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user