Make WordPress Core


Ignore:
Timestamp:
02/07/2012 06:06:12 PM (12 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/meta-boxes.php

    r19684 r19853  
    277277    $taxonomy = get_taxonomy($taxonomy);
    278278    $disabled = !current_user_can($taxonomy->cap->assign_terms) ? 'disabled="disabled"' : '';
     279    $comma = _x( ',', 'tag delimiter' );
    279280?>
    280281<div class="tagsdiv" id="<?php echo $tax_name; ?>">
     
    282283    <div class="nojs-tags hide-if-js">
    283284    <p><?php echo $taxonomy->labels->add_or_remove_items; ?></p>
    284     <textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php echo $disabled; ?>><?php echo get_terms_to_edit( $post->ID, $tax_name ); // textarea_escaped by esc_attr() ?></textarea></div>
     285    <textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php echo $disabled; ?>><?php echo str_replace( ',', $comma . ' ', get_terms_to_edit( $post->ID, $tax_name ) ); // textarea_escaped by esc_attr() ?></textarea></div>
    285286    <?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
    286287    <div class="ajaxtag hide-if-no-js">
Note: See TracChangeset for help on using the changeset viewer.