Make WordPress Core

Ticket #41150: 41150.diff

File 41150.diff, 1.4 KB (added by mdifelice, 7 years ago)
  • src/wp-admin/includes/meta-boxes.php

     
    496496        <div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv">
    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
    502502                <div id="<?php echo $tax_name; ?>-pop" class="tabs-panel" style="display: none;">
  • src/wp-includes/taxonomy.php

     
    511511                'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ),
    512512                'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
    513513                'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
     514                'most_used' => array( null, __( 'Most Used' ) ),
    514515        );
    515516        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    516517