Make WordPress Core

Ticket #23447: 23447.5.diff

File 23447.5.diff, 3.0 KB (added by diddledani, 8 years ago)

refresh against trunk@39850

  • wp-admin/edit-tags.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    244244                if ( ! global_terms_enabled() )
    245245                        $help .= '<li>' . __( '<strong>Slug</strong> &mdash; 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>';
    246246
    247                 if ( 'category' == $taxonomy )
    248                         $help .= '<li>' . __( '<strong>Parent</strong> &mdash; 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>';
     247        if ( is_taxonomy_hierarchical( $taxonomy ) )
     248            $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>';
    249249
    250250                $help .= '<li>' . __( '<strong>Description</strong> &mdash; The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
    251251                '</ul>' .
     
    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>
    441         <?php endif; ?>
     439    <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>
    442440</div>
    443441<?php endif; // is_taxonomy_hierarchical() ?>
    444442<div class="form-field term-description-wrap">
  • wp-admin/edit-tag-form.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    164164                                /** This filter is documented in wp-admin/edit-tags.php */
    165165                                $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
    166166                                wp_dropdown_categories( $dropdown_args ); ?>
    167                                 <?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>
    169                                 <?php endif; ?>
     167                <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>
    170168                        </td>
    171169                </tr>
    172170<?php endif; // is_taxonomy_hierarchical() ?>