Make WordPress Core

Ticket #37296: edit_category_labels.patch

File edit_category_labels.patch, 1.4 KB (added by wpnook, 9 years ago)

Changes the edit taxonomy labels to better suit the action

  • wp-admin/includes/class-wp-posts-list-table.php

     
    14601460
    14611461        <?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?>
    14621462
    1463                         <span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
     1463                        <span class="title inline-edit-categories-label"><?php echo __( 'Assign ' ) . esc_html( $taxonomy->labels->name ) ?></span>
    14641464                        <input type="hidden" name="<?php echo ( $taxonomy->name === 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" />
    14651465                        <ul class="cat-checklist <?php echo esc_attr( $taxonomy->name )?>-checklist">
    14661466                                <?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ) ?>
     
    15521552        <?php foreach ( $flat_taxonomies as $taxonomy ) : ?>
    15531553                <?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) : ?>
    15541554                        <label class="inline-edit-tags">
    1555                                 <span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
     1555                                <span class="title"><?php echo __( 'Assign ' ) . esc_html( $taxonomy->labels->name ) ?></span>
    15561556                                <textarea cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name )?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name )?>"></textarea>
    15571557                        </label>
    15581558                <?php endif; ?>