Ticket #12344: 11319.diff
File 11319.diff, 604 bytes (added by , 14 years ago) |
---|
-
wp-includes/taxonomy.php
1589 1589 if ( !is_array($terms) ) 1590 1590 $terms = array($terms); 1591 1591 1592 $old_tt_ids = array(); 1593 $tt_ids = array(); 1594 $term_ids = array(); 1595 1592 1596 if ( ! $append ) 1593 1597 $old_tt_ids = wp_get_object_terms($object_id, $taxonomy, array('fields' => 'tt_ids', 'orderby' => 'none')); 1594 1598 1595 $tt_ids = array();1596 $term_ids = array();1597 1598 1599 foreach ( (array) $terms as $term) { 1599 1600 if ( !strlen(trim($term)) ) 1600 1601 continue;