Permalink
Browse files

Taxonomy: Improve 'Parent' label when editing taxonomy terms.

Instead of the hardcoded 'Parent', use the `parent_item` label.

Props abrain, dlh.
Fixes #34545.
Built from https://develop.svn.wordpress.org/trunk@40146


git-svn-id: http://core.svn.wordpress.org/trunk@40085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
boonebgorges committed Mar 3, 2017
1 parent ac6a3c7 commit b6572af5d227103f185e5646394644837755a694
Showing with 3 additions and 3 deletions.
  1. +1 −1 wp-admin/edit-tag-form.php
  2. +1 −1 wp-admin/edit-tags.php
  3. +1 −1 wp-includes/version.php
@@ -146,7 +146,7 @@
<?php } ?>
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
<tr class="form-field term-parent-wrap">
- <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
+ <th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th>
<td>
<?php
$dropdown_args = array(
View
@@ -399,7 +399,7 @@
<?php endif; // global_terms_enabled() ?>
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
<div class="form-field term-parent-wrap">
- <label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label>
+ <label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label>
<?php
$dropdown_args = array(
'hide_empty' => 0,
View
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.8-alpha-40145';
+$wp_version = '4.8-alpha-40146';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 comments on commit b6572af

Please sign in to comment.