Make WordPress Core

Changeset 39895


Ignore:
Timestamp:
01/13/2017 04:18:16 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Add an explanation for "Parent" dropdown for hierarchical custom taxonomies.

Props F J Kaiser, raggedrobins, DrewAPicture, diddledan, SergeyBiryukov.
Fixes #23447.

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

Legend:

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

    r38753 r39895  
    166166                wp_dropdown_categories( $dropdown_args ); ?>
    167167                <?php if ( 'category' == $taxonomy ) : ?>
    168                 <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>
     168                    <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>
     169                <?php else : ?>
     170                    <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>
    169171                <?php endif; ?>
    170172            </td>
  • trunk/src/wp-admin/edit-tags.php

    r39649 r39895  
    437437    wp_dropdown_categories( $dropdown_args );
    438438    ?>
    439     <?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?>
    440         <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>
     439    <?php if ( 'category' == $taxonomy ) : ?>
     440        <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>
     441    <?php else : ?>
     442        <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>
    441443    <?php endif; ?>
    442444</div>
Note: See TracChangeset for help on using the changeset viewer.