WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6/src/wp-includes/taxonomy.php

    r38162 r38346  
    42754275    if ( false === $object_terms ) {
    42764276        $object_terms = wp_get_object_terms( $object_id, $taxonomy, array( 'update_term_meta_cache' => false ) );
     4277        if ( is_wp_error( $object_terms ) ) {
     4278            return $object_terms;
     4279        }
     4280
    42774281        wp_cache_set( $object_id, wp_list_pluck( $object_terms, 'term_id' ), "{$taxonomy}_relationships" );
    42784282    }
Note: See TracChangeset for help on using the changeset viewer.