Ticket #23447: 23447.4.diff
File 23447.4.diff, 3.1 KB (added by , 12 years ago) |
---|
-
wp-admin/edit-tag-form.php
53 53 <th scope="row" valign="top"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th> 54 54 <td> 55 55 <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?> 56 <?php if ( 'category' == $taxonomy ) : ?> 57 <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> 58 <?php endif; ?> 56 <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> 59 57 </td> 60 58 </tr> 61 59 <?php endif; // is_taxonomy_hierarchical() ?> -
wp-admin/edit-tags.php
222 222 if ( ! global_terms_enabled() ) 223 223 $help .= '<li>' . __( '<strong>Slug</strong> - The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>'; 224 224 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>'; 227 227 228 228 $help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' . 229 229 '</ul>' . … … 377 377 <div class="form-field"> 378 378 <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label> 379 379 <?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> 383 381 </div> 384 382 <?php endif; // is_taxonomy_hierarchical() ?> 385 383 <div class="form-field">