diff --git a/src/wp-admin/edit-tag-form.php b/src/wp-admin/edit-tag-form.php
index 3752b8f52c4..0c6e1994b98 100644
|
a
|
b
|
|
| 146 | 146 | <tr class="form-field form-required term-name-wrap"> |
| 147 | 147 | <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th> |
| 148 | 148 | <td><input name="name" id="name" type="text" value="<?php echo $tag_name_value; ?>" size="40" aria-required="true" /> |
| 149 | | <p class="description"><?php _e( 'The name is how it appears on your site.' ); ?></p></td> |
| | 149 | <p class="description"><?php echo $tax->labels->name_description; ?></p></td> |
| 150 | 150 | </tr> |
| 151 | 151 | <?php if ( ! global_terms_enabled() ) { ?> |
| 152 | 152 | <tr class="form-field term-slug-wrap"> |
| … |
… |
|
| 168 | 168 | $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : ''; |
| 169 | 169 | ?> |
| 170 | 170 | <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" /> |
| 171 | | <p class="description"><?php _e( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ); ?></p></td> |
| | 171 | <p class="description"><?php echo $tax->labels->slug_description; ?></p></td> |
| 172 | 172 | </tr> |
| 173 | 173 | <?php } ?> |
| 174 | 174 | <?php if ( is_taxonomy_hierarchical( $taxonomy ) ) : ?> |
| … |
… |
|
| 195 | 195 | <?php if ( 'category' === $taxonomy ) : ?> |
| 196 | 196 | <p class="description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p> |
| 197 | 197 | <?php else : ?> |
| 198 | | <p class="description"><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p> |
| | 198 | <p class="description"><?php echo $tax->labels->parent_description; ?></p> |
| 199 | 199 | <?php endif; ?> |
| 200 | 200 | </td> |
| 201 | 201 | </tr> |
| … |
… |
|
| 203 | 203 | <tr class="form-field term-description-wrap"> |
| 204 | 204 | <th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th> |
| 205 | 205 | <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea> |
| 206 | | <p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p></td> |
| | 206 | <p class="description"><?php echo $tax->labels->description_description; ?></p></td> |
| 207 | 207 | </tr> |
| 208 | 208 | <?php |
| 209 | 209 | // Back compat hooks. |
diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
index f95eba68c5d..dc3440043d1 100644
|
a
|
b
|
|
| 454 | 454 | <div class="form-field form-required term-name-wrap"> |
| 455 | 455 | <label for="tag-name"><?php _ex( 'Name', 'term name' ); ?></label> |
| 456 | 456 | <input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" /> |
| 457 | | <p><?php _e( 'The name is how it appears on your site.' ); ?></p> |
| | 457 | <p><?php echo $tax->labels->name_description; ?></p> |
| 458 | 458 | </div> |
| 459 | 459 | <?php if ( ! global_terms_enabled() ) : ?> |
| 460 | 460 | <div class="form-field term-slug-wrap"> |
| 461 | 461 | <label for="tag-slug"><?php _e( 'Slug' ); ?></label> |
| 462 | 462 | <input name="slug" id="tag-slug" type="text" value="" size="40" /> |
| 463 | | <p><?php _e( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ); ?></p> |
| | 463 | <p><?php echo $tax->labels->slug_description; ?></p> |
| 464 | 464 | </div> |
| 465 | 465 | <?php endif; // global_terms_enabled() ?> |
| 466 | 466 | <?php if ( is_taxonomy_hierarchical( $taxonomy ) ) : ?> |
| … |
… |
|
| 505 | 505 | <?php if ( 'category' === $taxonomy ) : ?> |
| 506 | 506 | <p><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p> |
| 507 | 507 | <?php else : ?> |
| 508 | | <p><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p> |
| | 508 | <p><?php echo $tax->labels->parent_description; ?></p> |
| 509 | 509 | <?php endif; ?> |
| 510 | 510 | </div> |
| 511 | 511 | <?php endif; // is_taxonomy_hierarchical() ?> |
| 512 | 512 | <div class="form-field term-description-wrap"> |
| 513 | 513 | <label for="tag-description"><?php _e( 'Description' ); ?></label> |
| 514 | 514 | <textarea name="description" id="tag-description" rows="5" cols="40"></textarea> |
| 515 | | <p><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p> |
| | 515 | <p><?php echo $tax->labels->description_description; ?></p> |
| 516 | 516 | </div> |
| 517 | 517 | |
| 518 | 518 | <?php |
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 848ba0a727b..32e1f66052b 100644
|
a
|
b
|
function get_taxonomy_labels( $tax ) { |
| 646 | 646 | |
| 647 | 647 | $nohier_vs_hier_defaults = array( |
| 648 | 648 | 'name' => array( _x( 'Tags', 'taxonomy general name' ), _x( 'Categories', 'taxonomy general name' ) ), |
| | 649 | 'name_description' => array( __( 'The name is how it appears on your site.' ), __( 'The name is how it appears on your site.' ) ), |
| 649 | 650 | 'singular_name' => array( _x( 'Tag', 'taxonomy singular name' ), _x( 'Category', 'taxonomy singular name' ) ), |
| 650 | 651 | 'search_items' => array( __( 'Search Tags' ), __( 'Search Categories' ) ), |
| 651 | 652 | 'popular_items' => array( __( 'Popular Tags' ), null ), |
| 652 | 653 | 'all_items' => array( __( 'All Tags' ), __( 'All Categories' ) ), |
| 653 | 654 | 'parent_item' => array( null, __( 'Parent Category' ) ), |
| 654 | 655 | 'parent_item_colon' => array( null, __( 'Parent Category:' ) ), |
| | 656 | 'parent_description' => array( null, __( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ) ), |
| | 657 | 'slug_description' => array( __( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ), __( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) ), |
| | 658 | 'description_description' => array( __( 'The description is not prominent by default; however, some themes may show it.' ), __( 'The description is not prominent by default; however, some themes may show it.' ) ), |
| 655 | 659 | 'edit_item' => array( __( 'Edit Tag' ), __( 'Edit Category' ) ), |
| 656 | 660 | 'view_item' => array( __( 'View Tag' ), __( 'View Category' ) ), |
| 657 | 661 | 'update_item' => array( __( 'Update Tag' ), __( 'Update Category' ) ), |