Make WordPress Core


Ignore:
Timestamp:
11/07/2012 08:00:51 PM (14 years ago)
Author:
nacin
Message:

Only call wp_get_object_terms() if get_object_term_cache() says there is no cache (false), which is different than no terms. props wonderboymusic, fixes #16505.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r22409 r22433  
    986986
    987987                $terms = get_object_term_cache($post->ID, $taxonomy);
    988                 if ( empty($terms) )
     988                if ( false === $terms )
    989989                        $terms = wp_get_object_terms($post->ID, $taxonomy, $t['args']);
    990990
Note: See TracChangeset for help on using the changeset viewer.