diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-admin/edit-tag-form.php --- a/wp/wp-admin/edit-tag-form.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-admin/edit-tag-form.php Tue Dec 15 13:49:49 2020 +0100 @@ -6,53 +6,53 @@ * @subpackage Administration */ -// don't load directly +// Don't load directly. if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } -// Back compat hooks -if ( 'category' == $taxonomy ) { +// Back compat hooks. +if ( 'category' === $taxonomy ) { /** * Fires before the Edit Category form. * * @since 2.1.0 - * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. + * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead. * * @param WP_Term $tag Current category term object. */ - do_action( 'edit_category_form_pre', $tag ); -} elseif ( 'link_category' == $taxonomy ) { + do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' ); +} elseif ( 'link_category' === $taxonomy ) { /** * Fires before the Edit Link Category form. * * @since 2.3.0 - * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. + * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead. * * @param WP_Term $tag Current link category term object. */ - do_action( 'edit_link_category_form_pre', $tag ); + do_action_deprecated( 'edit_link_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' ); } else { /** * Fires before the Edit Tag form. * * @since 2.5.0 - * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. + * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead. * * @param WP_Term $tag Current tag term object. */ - do_action( 'edit_tag_form_pre', $tag ); + do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' ); } /** - * Use with caution, see https://codex.wordpress.org/Function_Reference/wp_reset_vars + * Use with caution, see https://developer.wordpress.org/reference/functions/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' ); +require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php'; /** * Fires before the Edit Term form for all taxonomies. @@ -177,7 +177,7 @@ $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); wp_dropdown_categories( $dropdown_args ); ?> - +

@@ -191,37 +191,37 @@