Changeset 40984
- Timestamp:
- 07/01/2017 02:45:02 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r40643 r40984 497 497 <ul id="<?php echo $tax_name; ?>-tabs" class="category-tabs"> 498 498 <li class="tabs"><a href="#<?php echo $tax_name; ?>-all"><?php echo $taxonomy->labels->all_items; ?></a></li> 499 <li class="hide-if-no-js"><a href="#<?php echo $tax_name; ?>-pop"><?php _e( 'Most Used'); ?></a></li>499 <li class="hide-if-no-js"><a href="#<?php echo $tax_name; ?>-pop"><?php echo esc_html( $taxonomy->labels->most_used ); ?></a></li> 500 500 </ul> 501 501 -
trunk/src/wp-includes/taxonomy.php
r40944 r40984 453 453 * @since 4.3.0 Added the `no_terms` label. 454 454 * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels. 455 * @since 4.9.0 Added the `most_used` label. 455 456 * 456 457 * @param WP_Taxonomy $tax Taxonomy object. … … 487 488 * @type string $items_list_navigation Label for the table pagination hidden heading. 488 489 * @type string $items_list Label for the table hidden heading. 490 * @type string $most_used Title used for the Most Used panel. Not used for non-hierarchical 491 * taxonomies. Default 'Most Used'. 489 492 * } 490 493 */ … … 518 521 'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ), 519 522 'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ), 523 'most_used' => array( null, __( 'Most Used' ) ), 520 524 ); 521 525 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset
for help on using the changeset viewer.