Changeset 19853 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 02/07/2012 06:06:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r19684 r19853 277 277 $taxonomy = get_taxonomy($taxonomy); 278 278 $disabled = !current_user_can($taxonomy->cap->assign_terms) ? 'disabled="disabled"' : ''; 279 $comma = _x( ',', 'tag delimiter' ); 279 280 ?> 280 281 <div class="tagsdiv" id="<?php echo $tax_name; ?>"> … … 282 283 <div class="nojs-tags hide-if-js"> 283 284 <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> 285 286 <?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?> 286 287 <div class="ajaxtag hide-if-no-js">
Note: See TracChangeset
for help on using the changeset viewer.