Make WordPress Core


Ignore:
Timestamp:
01/24/2010 11:00:27 AM (16 years ago)
Author:
dd32
Message:

Merge Categories/Hierarchical taxonomies into edit-tags.php. See #11838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tag-form.php

    r12712 r12818  
    4040            <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
    4141            <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
    42             <p class="description"><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
     42            <p class="description"><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
     43        </tr>
     44<?php } ?>
     45<?php if ( is_taxonomy_hierarchical($taxonomy) ) { ?>
     46        <tr class="form-field">
     47            <th scope="row" valign="top"><label for="parent"><?php _e('Category Parent') ?></label></th>
     48            <td>
     49                <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
     50                <span 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.'); ?></span>
     51            </td>
    4352        </tr>
    4453<?php } ?>
     
    4655            <th scope="row" valign="top"><label for="description"><?php _e('Description') ?></label></th>
    4756            <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($tag->description); ?></textarea><br />
    48             <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
     57            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    4958        </tr>
    5059        <?php do_action('edit_tag_form_fields', $tag); ?>
Note: See TracChangeset for help on using the changeset viewer.