X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..f9001779751f83dc8a10e478bfecb4d8dd5f964c:/wp-admin/edit-tag-form.php diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 56674de0..daac9237 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -16,10 +16,14 @@ if ( empty($tag_ID) ) { ?> return; } +// 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); ?>
@@ -48,7 +52,7 @@ 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'))); ?>
@@ -57,24 +61,33 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> -
+
-