diff --git src/wp-admin/includes/nav-menu.php src/wp-admin/includes/nav-menu.php
index d1fa9507cd..d6acfcaf3c 100644
|
|
function wp_nav_menu_item_post_type_meta_box( $object, $box ) { |
607 | 607 | function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) { |
608 | 608 | global $nav_menu_selected_id; |
609 | 609 | $taxonomy_name = $box['args']->name; |
| 610 | $taxonomy = get_taxonomy( $taxonomy_name ); |
610 | 611 | |
611 | 612 | // Paginate browsing for large numbers of objects. |
612 | 613 | $per_page = 50; |
… |
… |
function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) { |
682 | 683 | <ul id="taxonomy-<?php echo $taxonomy_name; ?>-tabs" class="taxonomy-tabs add-menu-item-tabs"> |
683 | 684 | <li <?php echo ( 'most-used' == $current_tab ? ' class="tabs"' : '' ); ?>> |
684 | 685 | <a class="nav-tab-link" data-type="tabs-panel-<?php echo esc_attr( $taxonomy_name ); ?>-pop" href="<?php if ( $nav_menu_selected_id ) echo esc_url(add_query_arg($taxonomy_name . '-tab', 'most-used', remove_query_arg($removed_args))); ?>#tabs-panel-<?php echo $taxonomy_name; ?>-pop"> |
685 | | <?php _e( 'Most Used' ); ?> |
| 686 | <?php echo esc_html( $taxonomy->labels->most_used ); ?> |
686 | 687 | </a> |
687 | 688 | </li> |
688 | 689 | <li <?php echo ( 'all' == $current_tab ? ' class="tabs"' : '' ); ?>> |
diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 6313641d14..f8c6d61443 100644
|
|
function get_taxonomy_labels( $tax ) { |
523 | 523 | 'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ), |
524 | 524 | 'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ), |
525 | 525 | /* translators: Tab heading when selecting from the most used terms */ |
526 | | 'most_used' => array( null, _x( 'Most Used', 'Most used categories' ) ), |
| 526 | 'most_used' => array( _x( 'Most Used', 'tags' ), _x( 'Most Used', 'categories' ) ), |
527 | 527 | 'back_to_items' => array( __( '← Back to Tags' ), __( '← Back to Categories' ) ), |
528 | 528 | ); |
529 | 529 | $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; |