Taxonomy: After [40984], add the most_used label for non-hierarchical taxonomies too, and use it on the Menus screen.

Props johnbillion.
Fixes #41150.

git-svn-id: https://develop.svn.wordpress.org/trunk@41987 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2017-10-24 11:21:47 +00:00
parent 08421dfc72
commit eac206b375
3 changed files with 5 additions and 5 deletions
+2 -3
View File
@@ -488,8 +488,7 @@ function unregister_taxonomy( $taxonomy ) {
* list tables.
* @type string $items_list_navigation Label for the table pagination hidden heading.
* @type string $items_list Label for the table hidden heading.
* @type string $most_used Title used for the Most Used panel. Not used for non-hierarchical
* taxonomies. Default 'Most Used'.
* @type string $most_used Title for the Most Used tab. Default 'Most Used'.
* @type string $back_to_items Label displayed after a term has been updated.
* }
*/
@@ -523,7 +522,7 @@ function get_taxonomy_labels( $tax ) {
'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
/* translators: Tab heading when selecting from the most used terms */
'most_used' => array( null, _x( 'Most Used', 'Most used categories' ) ),
'most_used' => array( _x( 'Most Used', 'tags' ), _x( 'Most Used', 'categories' ) ),
'back_to_items' => array( __( '← Back to Tags' ), __( '← Back to Categories' ) ),
);
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];