Make WordPress Core

Changeset 40984


Ignore:
Timestamp:
07/01/2017 02:45:02 PM (7 years ago)
Author:
boonebgorges
Message:

Introduce most_used taxonomy label, for text on 'Most Used' metabox tab.

Props mdifelice, jlambe.
Fixes #41150.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r40643 r40984  
    497497        <ul id="<?php echo $tax_name; ?>-tabs" class="category-tabs">
    498498            <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>
    500500        </ul>
    501501
  • trunk/src/wp-includes/taxonomy.php

    r40944 r40984  
    453453 * @since 4.3.0 Added the `no_terms` label.
    454454 * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels.
     455 * @since 4.9.0 Added the `most_used` label.
    455456 *
    456457 * @param WP_Taxonomy $tax Taxonomy object.
     
    487488 *     @type string $items_list_navigation      Label for the table pagination hidden heading.
    488489 *     @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'.
    489492 * }
    490493 */
     
    518521        'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
    519522        'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
     523        'most_used' => array( null, __( 'Most Used' ) ),
    520524    );
    521525    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset for help on using the changeset viewer.