Make WordPress Core

Ticket #29824: patch.diff

File patch.diff, 4.3 KB (added by andg, 10 years ago)
  • wp-admin/edit-tag-form.php

    diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php
    index 9d5ceb5..93680f9 100644
    a b do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> 
    8181<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
    8282        <table class="form-table">
    8383                <tr class="form-field form-required">
    84                         <th scope="row"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></th>
     84                        <th scope="row"><label for="name"><?php _ex('Name', 'term name'); ?></label></th>
    8585                        <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />
    8686                        <p class="description"><?php _e('The name is how it appears on your site.'); ?></p></td>
    8787                </tr>
    8888<?php if ( !global_terms_enabled() ) { ?>
    8989                <tr class="form-field">
    90                         <th scope="row"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></th>
     90                        <th scope="row"><label for="slug"><?php _ex('Slug'); ?></label></th>
    9191                        <?php
    9292                        /**
    9393                         * Filter the editable term slug.
    do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> 
    103103<?php } ?>
    104104<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    105105                <tr class="form-field">
    106                         <th scope="row"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>
     106                        <th scope="row"><label for="parent"><?php _ex('Parent'); ?></label></th>
    107107                        <td>
    108108                                <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
    109109                                <?php if ( 'category' == $taxonomy ) : ?>
    do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> 
    113113                </tr>
    114114<?php endif; // is_taxonomy_hierarchical() ?>
    115115                <tr class="form-field">
    116                         <th scope="row"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th>
     116                        <th scope="row"><label for="description"><?php _ex('Description'); ?></label></th>
    117117                        <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea><br />
    118118                        <span class="description"><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></span></td>
    119119                </tr>
  • wp-admin/edit-tags.php

    diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php
    index 6c5ace0..a1355c4 100644
    a b if ( current_user_can($tax->cap->edit_terms) ) { 
    448448<?php wp_nonce_field('add-tag', '_wpnonce_add-tag'); ?>
    449449
    450450<div class="form-field form-required">
    451         <label for="tag-name"><?php _ex('Name', 'Taxonomy Name'); ?></label>
     451        <label for="tag-name"><?php _ex('Name', 'term name'); ?></label>
    452452        <input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
    453453        <p><?php _e('The name is how it appears on your site.'); ?></p>
    454454</div>
    455455<?php if ( ! global_terms_enabled() ) : ?>
    456456<div class="form-field">
    457         <label for="tag-slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label>
     457        <label for="tag-slug"><?php _ex('Slug'); ?></label>
    458458        <input name="slug" id="tag-slug" type="text" value="" size="40" />
    459459        <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
    460460</div>
    461461<?php endif; // global_terms_enabled() ?>
    462462<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    463463<div class="form-field">
    464         <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label>
     464        <label for="parent"><?php _ex('Parent'); ?></label>
    465465        <?php
    466466        $dropdown_args = array(
    467467                'hide_empty'       => 0,
    if ( current_user_can($tax->cap->edit_terms) ) { 
    501501</div>
    502502<?php endif; // is_taxonomy_hierarchical() ?>
    503503<div class="form-field">
    504         <label for="tag-description"><?php _ex('Description', 'Taxonomy Description'); ?></label>
     504        <label for="tag-description"><?php _ex('Description'); ?></label>
    505505        <textarea name="description" id="tag-description" rows="5" cols="40"></textarea>
    506506        <p><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p>
    507507</div>