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
This commit is contained in:
parent
ac6a3c76e4
commit
b6572af5d2
|
@ -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,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue