Make WordPress Core


Ignore:
Timestamp:
01/13/2017 04:18:16 AM (9 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.