X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/1c09677af04c9e37714e09b73eb9dbc5b2e3eb13..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/edit-tag-form.php
diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php
index 31f60942..d233b309 100644
--- a/wp-admin/edit-tag-form.php
+++ b/wp-admin/edit-tag-form.php
@@ -7,47 +7,259 @@
*/
// don't load directly
-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 ( ! defined( 'ABSPATH' ) ) {
+ die( '-1' );
+}
-if ( empty($tag_ID) ) { ?>
-
-
+/**
+ * Use with caution, see https://codex.wordpress.org/Function_Reference/wp_reset_vars
+ */
+wp_reset_vars( array( 'wp_http_referer' ) );
+
+$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
+
+/** Also used by Edit Tags */
+require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' );
+
+/**
+ * Fires before the Edit Term form for all taxonomies.
+ *
+ * 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}_pre_edit_form", $tag, $taxonomy ); ?>
-
-
+
labels->edit_item; ?>
+
+
+
+
+
-
+
+
+
+