Make WordPress Core

Changeset 40146 for trunk


Ignore:
Timestamp:
03/03/2017 02:53:34 AM (7 years ago)
Author:
boonebgorges
Message:

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

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

Props abrain, dlh.
Fixes #34545.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r39895 r40146  
    147147<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    148148        <tr class="form-field term-parent-wrap">
    149             <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
     149            <th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th>
    150150            <td>
    151151                <?php
  • trunk/src/wp-admin/edit-tags.php

    r39895 r40146  
    400400<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    401401<div class="form-field term-parent-wrap">
    402     <label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label>
     402    <label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label>
    403403    <?php
    404404    $dropdown_args = array(
Note: See TracChangeset for help on using the changeset viewer.