WordPress.org

Make WordPress Core

Ticket #22394: is_object_in_term.patch

File is_object_in_term.patch, 480 bytes (added by picklewagon, 18 months ago)
  • taxonomy.php

     
    31613161                return new WP_Error( 'invalid_object', __( 'Invalid object ID' ) ); 
    31623162 
    31633163        $object_terms = get_object_term_cache( $object_id, $taxonomy ); 
    3164         if ( false === $terms ) 
     3164        if ( false === $object_terms ) 
    31653165                 $object_terms = wp_get_object_terms( $object_id, $taxonomy ); 
    31663166 
    31673167        if ( is_wp_error( $object_terms ) )