- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r47059 r47122 140 140 */ 141 141 public function has_items() { 142 // todo: populate $this->items in prepare_items()142 // @todo Populate $this->items in prepare_items(). 143 143 return true; 144 144 } … … 255 255 $children = _get_term_hierarchy( $taxonomy ); 256 256 } 257 // Some funky recursion to get the job done( Paging & parents mainly ) is contained within, Skip it for non-hierarchical taxonomies for performance sake 257 258 /* 259 * Some funky recursion to get the job done (paging & parents mainly) is contained within. 260 * Skip it for non-hierarchical taxonomies for performance sake. 261 */ 258 262 $this->_rows( $taxonomy, $terms, $children, $offset, $number, $count ); 259 263 } else { … … 629 633 ?> 630 634 631 <form method="get"><table style="display: none"><tbody id="inlineedit"> 632 <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange"> 635 <form method="get"> 636 <table style="display: none"><tbody id="inlineedit"> 637 638 <tr id="inline-edit" class="inline-edit-row" style="display: none"> 639 <td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange"> 633 640 634 641 <fieldset> … … 639 646 <span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span> 640 647 </label> 641 <?php if ( ! global_terms_enabled() ) { ?> 642 <label> 643 <span class="title"><?php _e( 'Slug' ); ?></span> 644 <span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span> 645 </label> 646 <?php } ?> 647 </div></fieldset> 648 649 <?php if ( ! global_terms_enabled() ) : ?> 650 <label> 651 <span class="title"><?php _e( 'Slug' ); ?></span> 652 <span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span> 653 </label> 654 <?php endif; ?> 655 </div> 656 </fieldset> 657 658 <?php 659 $core_columns = array( 660 'cb' => true, 661 'description' => true, 662 'name' => true, 663 'slug' => true, 664 'posts' => true, 665 ); 666 667 list( $columns ) = $this->get_column_info(); 668 669 foreach ( $columns as $column_name => $column_display_name ) { 670 if ( isset( $core_columns[ $column_name ] ) ) { 671 continue; 672 } 673 674 /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ 675 do_action( 'quick_edit_custom_box', $column_name, 'edit-tags', $this->screen->taxonomy ); 676 } 677 ?> 678 679 <div class="inline-edit-save submit"> 680 <button type="button" class="cancel button alignleft"><?php _e( 'Cancel' ); ?></button> 681 <button type="button" class="save button button-primary alignright"><?php echo $tax->labels->update_item; ?></button> 682 <span class="spinner"></span> 683 684 <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?> 685 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $this->screen->taxonomy ); ?>" /> 686 <input type="hidden" name="post_type" value="<?php echo esc_attr( $this->screen->post_type ); ?>" /> 687 <br class="clear" /> 688 689 <div class="notice notice-error notice-alt inline hidden"> 690 <p class="error"></p> 691 </div> 692 </div> 693 694 </td></tr> 695 696 </tbody></table> 697 </form> 648 698 <?php 649 650 $core_columns = array(651 'cb' => true,652 'description' => true,653 'name' => true,654 'slug' => true,655 'posts' => true,656 );657 658 list( $columns ) = $this->get_column_info();659 660 foreach ( $columns as $column_name => $column_display_name ) {661 if ( isset( $core_columns[ $column_name ] ) ) {662 continue;663 }664 665 /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */666 do_action( 'quick_edit_custom_box', $column_name, 'edit-tags', $this->screen->taxonomy );667 }668 669 ?>670 671 <div class="inline-edit-save submit">672 <button type="button" class="cancel button alignleft"><?php _e( 'Cancel' ); ?></button>673 <button type="button" class="save button button-primary alignright"><?php echo $tax->labels->update_item; ?></button>674 <span class="spinner"></span>675 <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?>676 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $this->screen->taxonomy ); ?>" />677 <input type="hidden" name="post_type" value="<?php echo esc_attr( $this->screen->post_type ); ?>" />678 <br class="clear" />679 <div class="notice notice-error notice-alt inline hidden">680 <p class="error"></p>681 </div>682 </div>683 </td></tr>684 </tbody></table></form>685 <?php686 699 } 687 700 }
Note: See TracChangeset
for help on using the changeset viewer.