Taxonomy: Improve 'Parent' label when editing taxonomy terms.
Instead of the hardcoded 'Parent', use the `parent_item` label. Props abrain, dlh. Fixes #34545. git-svn-id: https://develop.svn.wordpress.org/trunk@40146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d3e463cb84
commit
5983e88ab1
|
@ -146,7 +146,7 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
||||||
<tr class="form-field term-parent-wrap">
|
<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>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
$dropdown_args = array(
|
$dropdown_args = array(
|
||||||
|
|
|
@ -399,7 +399,7 @@ do_action( "{$taxonomy}_term_new_form_tag" );
|
||||||
<?php endif; // global_terms_enabled() ?>
|
<?php endif; // global_terms_enabled() ?>
|
||||||
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
||||||
<div class="form-field term-parent-wrap">
|
<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
|
<?php
|
||||||
$dropdown_args = array(
|
$dropdown_args = array(
|
||||||
'hide_empty' => 0,
|
'hide_empty' => 0,
|
||||||
|
|
Loading…
Reference in New Issue