X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..1132430022383fdf47fa6cb9377300fd885297aa:/wp-admin/edit-tag-form.php diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index b8f41253..94a26bbd 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -17,40 +17,94 @@ 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); ?> +if ( 'category' == $taxonomy ) { + /** + * Fires before the Edit Category form. + * + * @since 2.1.0 + * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. + * + * @param object $tag Current category term object. + */ + do_action( 'edit_category_form_pre', $tag ); +} 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. + * + * @param object $tag Current link category term object. + */ + do_action( 'edit_link_category_form_pre', $tag ); +} else { + /** + * Fires before the Edit Tag form. + * + * @since 2.5.0 + * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. + * + * @param object $tag Current tag term object. + */ + do_action( 'edit_tag_form_pre', $tag ); +} +/** + * 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; ?>

-
> +> - - + + - - - + + + - - + + - - - + + +

+

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'))); ?> @@ -59,38 +113,96 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?>

-
+

+ + +