diff --git a/src/wp-includes/class-wp-term-query.php b/src/wp-includes/class-wp-term-query.php
index 5890bf714a..2940a00030 100644
|
a
|
b
|
class WP_Term_Query {
|
| 552 | 552 | $offset = $args['offset']; |
| 553 | 553 | |
| 554 | 554 | // Don't limit the query results when we have to descend the family tree. |
| 555 | | if ( $number && ! $hierarchical && ! $child_of && '' === $parent ) { |
| | 555 | if ( $number && empty( $args['object_ids'] ) && ! $hierarchical && ! $child_of && '' === $parent ) { |
| 556 | 556 | if ( $offset ) { |
| 557 | 557 | $limits = 'LIMIT ' . $offset . ',' . $number; |
| 558 | 558 | } else { |