mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user