Ticket #23447: 23447.3.diff
File 23447.3.diff, 2.0 KB (added by , 12 years ago) |
---|
-
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">