Changeset 35139 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 10/13/2015 04:39:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r35129 r35139 428 428 $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms ); 429 429 $comma = _x( ',', 'tag delimiter' ); 430 $terms_to_edit = get_terms_to_edit( $post->ID, $tax_name ); 431 if ( ! is_string( $terms_to_edit ) ) { 432 $terms_to_edit = ''; 433 } 430 434 ?> 431 435 <div class="tagsdiv" id="<?php echo $tax_name; ?>"> … … 433 437 <div class="nojs-tags hide-if-js"> 434 438 <p><?php echo $taxonomy->labels->add_or_remove_items; ?></p> 435 <textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php disabled( ! $user_can_assign_terms ); ?>><?php echo str_replace( ',', $comma . ' ', get_terms_to_edit( $post->ID, $tax_name )); // textarea_escaped by esc_attr() ?></textarea></div>439 <textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php disabled( ! $user_can_assign_terms ); ?>><?php echo str_replace( ',', $comma . ' ', $terms_to_edit ); // textarea_escaped by esc_attr() ?></textarea></div> 436 440 <?php if ( $user_can_assign_terms ) : ?> 437 441 <div class="ajaxtag hide-if-no-js">
Note: See TracChangeset
for help on using the changeset viewer.