Changeset 19853 for trunk/wp-admin/includes/template.php
- Timestamp:
- 02/07/2012 06:06:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r19825 r19853 265 265 $taxonomy = get_taxonomy( $taxonomy_name ); 266 266 267 if ( $taxonomy->hierarchical && $taxonomy->show_ui ) 268 echo '<div class="post_category" id="'.$taxonomy_name.'_'.$post->ID.'">' . implode( ',', wp_get_object_terms( $post->ID, $taxonomy_name, array('fields'=>'ids')) ) . '</div>'; 269 elseif ( $taxonomy->show_ui ) 270 echo '<div class="tags_input" id="'.$taxonomy_name.'_'.$post->ID.'">' . esc_html( str_replace( ',', ', ', get_terms_to_edit($post->ID, $taxonomy_name) ) ) . '</div>'; 267 if ( $taxonomy->hierarchical && $taxonomy->show_ui ) { 268 echo '<div class="post_category" id="' . $taxonomy_name . '_' . $post->ID . '">' 269 . implode( ',', wp_get_object_terms( $post->ID, $taxonomy_name, array( 'fields' => 'ids' ) ) ) . '</div>'; 270 } elseif ( $taxonomy->show_ui ) { 271 echo '<div class="tags_input" id="'.$taxonomy_name.'_'.$post->ID.'">' 272 . esc_html( str_replace( ',', ', ', get_terms_to_edit( $post->ID, $taxonomy_name ) ) ) . '</div>'; 273 } 271 274 } 272 275
Note: See TracChangeset
for help on using the changeset viewer.