diff --git src/wp-includes/class-wp-term-query.php src/wp-includes/class-wp-term-query.php
index 25baaa8dd1..c71c610942 100644
|
|
class WP_Term_Query { |
1130 | 1130 | foreach ( $terms as $key => $term_data ) { |
1131 | 1131 | if ( is_object( $term_data ) && property_exists( $term_data, 'term_id' ) ) { |
1132 | 1132 | $term = get_term( $term_data->term_id ); |
1133 | | if ( property_exists( $term_data, 'object_id' ) ) { |
| 1133 | if ( is_object( $term ) && property_exists( $term_data, 'object_id' ) ) { |
1134 | 1134 | $term->object_id = (int) $term_data->object_id; |
1135 | 1135 | } |
1136 | 1136 | if ( property_exists( $term_data, 'count' ) ) { |