Ticket #41150: 41150.1.diff
File 41150.1.diff, 2.2 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/meta-boxes.php
496 496 <div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv"> 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 502 502 <div id="<?php echo $tax_name; ?>-pop" class="tabs-panel" style="display: none;"> -
src/wp-includes/taxonomy.php
470 470 * - no_terms - Default is "No tags"/"No categories", used in the posts and media list tables. 471 471 * - items_list_navigation - String for the table pagination hidden heading. 472 472 * - items_list - String for the table hidden heading. 473 * - most_used - Title for the most used panel. Not used for non-hierarchical taxonomies. Default is "Most Used". 473 474 * 474 475 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories). 475 476 * … … 478 479 * @since 3.0.0 479 480 * @since 4.3.0 Added the `no_terms` label. 480 481 * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels. 482 * @since x.y.z Added the `most_used` label. 481 483 * 482 484 * @param WP_Taxonomy $tax Taxonomy object. 483 485 * @return object object with all the labels as member variables. … … 511 513 'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ), 512 514 'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ), 513 515 'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ), 516 'most_used' => array( null, __( 'Most Used' ) ), 514 517 ); 515 518 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 516 519