X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/4f9d63e13cd8c6e275797c75b401b074b82937bc..85ad385665744d9cc3bcd939906309be7268edb3:/wp-admin/edit-tag-form.php diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 56674de0..f021b2a3 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -16,17 +16,20 @@ if ( empty($tag_ID) ) { ?> return; } -if ( 'category' == $taxonomy ) - do_action('edit_category_form_pre', $tag ); -else - do_action('edit_tag_form_pre', $tag); -do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> +// Back compat hooks +if ( 'category' == $taxonomy ) { + do_action( 'edit_category_form_pre', $tag ); +} elseif ( 'link_category' == $taxonomy ) { + do_action( 'edit_link_category_form_pre', $tag ); +} else { + do_action( 'edit_tag_form_pre', $tag ); +} +do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
-

labels->edit_item; ?>

-
+> @@ -48,33 +51,45 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> - 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
+ 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'))); ?> - +

-
- +
+ -

+