WordPress.org

Make WordPress Core

Ticket #23447: 23447.6.diff

File 23447.6.diff, 2.1 KB (added by SergeyBiryukov, 4 years ago)
  • src/wp-admin/edit-tag-form.php

     
    165165                                $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
    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>
    171173                </tr>
  • src/wp-admin/edit-tags.php

     
    436436
    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>
    443445<?php endif; // is_taxonomy_hierarchical() ?>