--- a/wp/wp-admin/edit-tag-form.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/edit-tag-form.php Wed Sep 21 18:19:35 2022 +0200
@@ -51,7 +51,7 @@
$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
-/** Also used by Edit Tags */
+// Also used by Edit Tags.
require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
/**
@@ -60,6 +60,11 @@
* The dynamic portion of the hook name, `$taxonomy`, refers to
* the taxonomy slug.
*
+ * Possible hook names include:
+ *
+ * - `category_pre_edit_form`
+ * - `post_tag_pre_edit_form`
+ *
* @since 3.0.0
*
* @param WP_Term $tag Current taxonomy term object.
@@ -96,14 +101,19 @@
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
+ * Possible hook names include:
+ *
+ * - `category_term_edit_form_tag`
+ * - `post_tag_term_edit_form_tag`
+ *
* @since 3.7.0
*/
do_action( "{$taxonomy}_term_edit_form_tag" );
?>
>
-<input type="hidden" name="action" value="editedtag"/>
-<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>"/>
-<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>"/>
+<input type="hidden" name="action" value="editedtag" />
+<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>" />
+<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>" />
<?php
wp_original_referer_field( true, 'previous' );
wp_nonce_field( 'update-tag_' . $tag_ID );
@@ -115,6 +125,11 @@
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
+ * Possible hook names include:
+ *
+ * - `category_term_edit_form_top`
+ * - `post_tag_term_edit_form_top`
+ *
* @since 4.5.0
*
* @param WP_Term $tag Current taxonomy term object.
@@ -138,7 +153,7 @@
<th scope="row"><label for="slug"><?php _e( 'Slug' ); ?></label></th>
<?php
/**
- * Filters the editable slug.
+ * Filters the editable slug for a post or term.
*
* Note: This is a multi-use hook in that it is leveraged both for editable
* post URIs and term slugs.
@@ -148,7 +163,7 @@
*
* @param string $slug The editable slug. Will be either a term slug or post URI depending
* upon the context in which it is evaluated.
- * @param WP_Term|WP_Post $tag Term or WP_Post object.
+ * @param WP_Term|WP_Post $tag Term or post object.
*/
$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : '';
?>
@@ -229,6 +244,11 @@
* The dynamic portion of the hook name, `$taxonomy`, refers to
* the taxonomy slug.
*
+ * Possible hook names include:
+ *
+ * - `category_edit_form_fields`
+ * - `post_tag_edit_form_fields`
+ *
* @since 3.0.0
*
* @param WP_Term $tag Current taxonomy term object.
@@ -261,6 +281,11 @@
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
+ * Possible hook names include:
+ *
+ * - `category_edit_form`
+ * - `post_tag_edit_form`
+ *
* @since 3.0.0
*
* @param WP_Term $tag Current taxonomy term object.
@@ -275,7 +300,7 @@
<?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?>
<span id="delete-link">
- <a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ); ?>"><?php _e( 'Delete' ); ?></a>
+ <a class="delete" href="<?php echo esc_url( admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ); ?>"><?php _e( 'Delete' ); ?></a>
</span>
<?php endif; ?>