Make WordPress Core


Ignore:
Timestamp:
02/07/2012 06:06:12 PM (15 years ago)
Author:
nacin
Message:

Allow localized commas to be used as tag separators. see #7897.

File:
1 edited

Legend:

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

    r19825 r19853  
    265265                $taxonomy = get_taxonomy( $taxonomy_name );
    266266
    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                }
    271274        }
    272275
Note: See TracChangeset for help on using the changeset viewer.