Ticket #21309: 21309.11.diff
File 21309.11.diff, 674 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/template.php
166 166 * @return array List of popular term IDs. 167 167 */ 168 168 function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10, $echo = true ) { 169 $post = get_post(); 170 if ( $post->ID ) 171 $checked_terms = wp_get_object_terms($post->ID, $taxonomy, array('fields'=>'ids')); 169 global $post_ID; 170 171 if ( $post_ID ) 172 $checked_terms = wp_get_object_terms( $post_ID, $taxonomy, array( 'fields' => 'ids' ) ); 172 173 else 173 174 $checked_terms = array(); 174 175