Ticket #22394: is_object_in_term.patch
File is_object_in_term.patch, 480 bytes (added by , 12 years ago) |
---|
-
taxonomy.php
3161 3161 return new WP_Error( 'invalid_object', __( 'Invalid object ID' ) ); 3162 3162 3163 3163 $object_terms = get_object_term_cache( $object_id, $taxonomy ); 3164 if ( false === $ terms )3164 if ( false === $object_terms ) 3165 3165 $object_terms = wp_get_object_terms( $object_id, $taxonomy ); 3166 3166 3167 3167 if ( is_wp_error( $object_terms ) )