+<?php } ?>
+<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
+ <tr class="form-field term-parent-wrap">
+ <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
+ <td>
+ <?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'))); ?>
+ <?php if ( 'category' == $taxonomy ) : ?>
+ <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>
+ <?php endif; ?>
+ </td>
+ </tr>
+<?php endif; // is_taxonomy_hierarchical() ?>
+ <tr class="form-field term-description-wrap">
+ <th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th>
+ <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea>
+ <p class="description"><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p></td>
+ </tr>
+ <?php
+ // Back compat hooks
+ if ( 'category' == $taxonomy ) {
+ /**
+ * Fires after the Edit Category form fields are displayed.
+ *
+ * @since 2.9.0
+ * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
+ *
+ * @param object $tag Current category term object.
+ */
+ do_action( 'edit_category_form_fields', $tag );
+ } elseif ( 'link_category' == $taxonomy ) {
+ /**
+ * Fires after the Edit Link Category form fields are displayed.
+ *
+ * @since 2.9.0
+ * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
+ *
+ * @param object $tag Current link category term object.
+ */
+ do_action( 'edit_link_category_form_fields', $tag );
+ } else {
+ /**
+ * Fires after the Edit Tag form fields are displayed.
+ *
+ * @since 2.9.0
+ * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
+ *
+ * @param object $tag Current tag term object.
+ */
+ do_action( 'edit_tag_form_fields', $tag );
+ }
+ /**
+ * Fires after the Edit Term form fields are displayed.
+ *
+ * The dynamic portion of the hook name, `$taxonomy`, refers to
+ * the taxonomy slug.
+ *
+ * @since 3.0.0
+ *
+ * @param object $tag Current taxonomy term object.
+ * @param string $taxonomy Current taxonomy slug.
+ */
+ do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy );
+ ?>