Make WordPress Core

Ticket #18392: terms.patch

File terms.patch, 894 bytes (added by wpdavis, 13 years ago)
  • wp-includes/taxonomy.php

     
    29942994                        $t['template'] = $template;
    29952995
    29962996                $terms = get_object_term_cache($post->ID, $taxonomy);
    2997                 if ( empty($terms) )
     2997                if ( false === $terms )
    29982998                        $terms = wp_get_object_terms($post->ID, $taxonomy, $t['args']);
    29992999
    30003000                $links = array();
  • wp-admin/includes/media.php

     
    11231123                        $t['args'] = array();
    11241124
    11251125                $terms = get_object_term_cache($post->ID, $taxonomy);
    1126                 if ( empty($terms) )
     1126                if ( false === $terms )
    11271127                        $terms = wp_get_object_terms($post->ID, $taxonomy, $t['args']);
    11281128
    11291129                $values = array();