Changeset 22396 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 11/06/2012 01:01:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r22364 r22396 424 424 echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. 425 425 ?> 426 <ul id="<?php echo $taxonomy; ?>checklist" class="list:<?php echo $taxonomy?>categorychecklist form-no-clear">426 <ul id="<?php echo $taxonomy; ?>checklist" data-wp-lists="list:<?php echo $taxonomy?>" class="categorychecklist form-no-clear"> 427 427 <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?> 428 428 </ul> … … 445 445 </label> 446 446 <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?> 447 <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-addbutton category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />447 <input type="button" id="<?php echo $taxonomy; ?>-add-submit" data-wp-lists="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add" class="button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" /> 448 448 <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?> 449 449 <span id="<?php echo $taxonomy; ?>-ajax-response"></span> … … 756 756 757 757 <div id="categories-all" class="tabs-panel"> 758 <ul id="categorychecklist" class="list:categorycategorychecklist form-no-clear">758 <ul id="categorychecklist" data-wp-lists="list:category" class="categorychecklist form-no-clear"> 759 759 <?php 760 760 if ( isset($link->link_id) ) … … 777 777 <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 778 778 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" /> 779 <input type="button" id="link-category-add-submit" class="add:categorychecklist:linkcategorydivbutton" value="<?php esc_attr_e( 'Add' ); ?>" />779 <input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" /> 780 780 <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?> 781 781 <span id="category-ajax-response"></span>
Note: See TracChangeset
for help on using the changeset viewer.