diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index cce4867..73fd414 100644
|
|
function is_object_in_term( $object_id, $taxonomy, $terms = null ) { |
4553 | 4553 | if ( !$object_id = (int) $object_id ) |
4554 | 4554 | return new WP_Error( 'invalid_object', __( 'Invalid object ID' ) ); |
4555 | 4555 | |
4556 | | $object_terms = get_object_term_cache( $object_id, $taxonomy ); |
4557 | | if ( false === $object_terms ) |
4558 | | $object_terms = wp_get_object_terms( $object_id, $taxonomy ); |
| 4556 | $object_terms = get_the_terms( $object_id, $taxonomy ); |
4559 | 4557 | |
4560 | 4558 | if ( is_wp_error( $object_terms ) ) |
4561 | 4559 | return $object_terms; |