Make WordPress Core

Ticket #23447: 23447.3.diff

File 23447.3.diff, 2.0 KB (added by raggedrobins, 12 years ago)
  • wp-admin/edit-tags.php

     
    222222                if ( ! global_terms_enabled() )
    223223                        $help .= '<li>' . __( '<strong>Slug</strong> - The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>';
    224224
    225                 if ( 'category' == $taxonomy )
    226                         $help .= '<li>' . __( '<strong>Parent</strong> - Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have child categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.' ) . '</li>';
     225                if ( is_taxonomy_hierarchical( $taxonomy ) )
     226                        $help .= '<li>' . __( '<strong>Parent</strong> - Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ) . '</li>';
    227227
    228228                $help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
    229229                '</ul>' .
     
    377377<div class="form-field">
    378378        <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label>
    379379        <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'taxonomy' => $taxonomy, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
    380         <?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?>
    381                 <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>
    382         <?php endif; ?>
     380        <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>
    383381</div>
    384382<?php endif; // is_taxonomy_hierarchical() ?>
    385383<div class="form-field">