WordPress.org

Make WordPress Core


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

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

Props mdifelice, jlambe.
Fixes #41150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.