Skip to content

Commit f727ccb

Browse files
committed
chore: WP_Term_Query::get_terms should return a numeric string when counting
1 parent 193f716 commit f727ccb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/class-wp-term-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public function get_terms() {
431431

432432
if ( ! $in_hierarchy ) {
433433
if ( 'count' === $args['fields'] ) {
434-
return 0;
434+
return '0';
435435
} else {
436436
$this->terms = array();
437437
return $this->terms;

0 commit comments

Comments
 (0)