Make WordPress Core

Ticket #41150: 41150.3.diff

File 41150.3.diff, 2.0 KB (added by johnbillion, 7 years ago)
  • src/wp-admin/includes/nav-menu.php

    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 ) { 
    607607function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) {
    608608        global $nav_menu_selected_id;
    609609        $taxonomy_name = $box['args']->name;
     610        $taxonomy = get_taxonomy( $taxonomy_name );
    610611
    611612        // Paginate browsing for large numbers of objects.
    612613        $per_page = 50;
    function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) { 
    682683                <ul id="taxonomy-<?php echo $taxonomy_name; ?>-tabs" class="taxonomy-tabs add-menu-item-tabs">
    683684                        <li <?php echo ( 'most-used' == $current_tab ? ' class="tabs"' : '' ); ?>>
    684685                                <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 ); ?>
    686687                                </a>
    687688                        </li>
    688689                        <li <?php echo ( 'all' == $current_tab ? ' class="tabs"' : '' ); ?>>
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index 6313641d14..f8c6d61443 100644
    function get_taxonomy_labels( $tax ) { 
    523523                'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
    524524                'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
    525525                /* 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' ) ),
    527527                'back_to_items' => array( __( '&larr; Back to Tags' ), __( '&larr; Back to Categories' ) ),
    528528        );
    529529        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];