X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fd1685fbc29cf422e0d23f1bf1815bc023be805d..53a5df18dd17a11c18781e78349feb3e139096b4:/wp-admin/edit-tag-form.php diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 250ba7a3..b8f41253 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -10,45 +10,87 @@ if ( !defined('ABSPATH') ) die('-1'); -if ( !current_user_can('manage_categories') ) - wp_die(__('You do not have sufficient permissions to edit tags for this blog.')); - if ( empty($tag_ID) ) { ?> -

+

+// 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; ?>

-
+> - + +

+ - + +

+ + + + + + + - - + + - +
-

-

+ 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'))); ?> + +

+ +

-

+
-

- +
+