From c06d7145bcf76bc4b0acb3dd6d3fe3c07af906b4 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 2 Jan 2014 04:01:12 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/edit-tag-form.php. Props nicolealleyinteractivecom, kpdesign. Fixes #25448. git-svn-id: https://develop.svn.wordpress.org/trunk@26895 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-tag-form.php | 145 +++++++++++++++++++++++++++++---- 1 file changed, 127 insertions(+), 18 deletions(-) diff --git a/src/wp-admin/edit-tag-form.php b/src/wp-admin/edit-tag-form.php index f021b2a3a8..ee8dcda11f 100644 --- a/src/wp-admin/edit-tag-form.php +++ b/src/wp-admin/edit-tag-form.php @@ -18,18 +18,63 @@ if ( empty($tag_ID) ) { ?> // 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. + * + * @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; ?>

-
> + +> @@ -43,7 +88,16 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> - + +

@@ -65,26 +119,81 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>