From 1b0694c1b53e11becd23a893dcc523c72c99f843 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 31 May 2011 05:05:42 +0000 Subject: [PATCH] Correct the logic for Taxonomy edit page actions. Props michaeltyson for initial patch. Fixes #17617 git-svn-id: https://develop.svn.wordpress.org/trunk@18078 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-tag-form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index daac92371d..92f074a790 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -68,7 +68,7 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> // Back compat hooks if ( 'category' == $taxonomy ) do_action('edit_category_form_fields', $tag); - if ( 'link_category' == $taxonomy ) + elseif ( 'link_category' == $taxonomy ) do_action('edit_link_category_form_fields', $tag); else do_action('edit_tag_form_fields', $tag); @@ -80,7 +80,7 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> // Back compat hooks if ( 'category' == $taxonomy ) do_action('edit_category_form', $tag); -if ( 'link_category' == $taxonomy ) +elseif ( 'link_category' == $taxonomy ) do_action('edit_link_category_form', $tag); else do_action('edit_tag_form', $tag);