mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-26 22:32:52 +02:00
Correct the logic for Taxonomy edit page actions. Props michaeltyson for initial patch. Fixes #17617
git-svn-id: http://svn.automattic.com/wordpress/trunk@18078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd9146ed3d
commit
fc52dfeec4
@ -68,7 +68,7 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?>
|
|||||||
// Back compat hooks
|
// Back compat hooks
|
||||||
if ( 'category' == $taxonomy )
|
if ( 'category' == $taxonomy )
|
||||||
do_action('edit_category_form_fields', $tag);
|
do_action('edit_category_form_fields', $tag);
|
||||||
if ( 'link_category' == $taxonomy )
|
elseif ( 'link_category' == $taxonomy )
|
||||||
do_action('edit_link_category_form_fields', $tag);
|
do_action('edit_link_category_form_fields', $tag);
|
||||||
else
|
else
|
||||||
do_action('edit_tag_form_fields', $tag);
|
do_action('edit_tag_form_fields', $tag);
|
||||||
@ -80,7 +80,7 @@ do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?>
|
|||||||
// Back compat hooks
|
// Back compat hooks
|
||||||
if ( 'category' == $taxonomy )
|
if ( 'category' == $taxonomy )
|
||||||
do_action('edit_category_form', $tag);
|
do_action('edit_category_form', $tag);
|
||||||
if ( 'link_category' == $taxonomy )
|
elseif ( 'link_category' == $taxonomy )
|
||||||
do_action('edit_link_category_form', $tag);
|
do_action('edit_link_category_form', $tag);
|
||||||
else
|
else
|
||||||
do_action('edit_tag_form', $tag);
|
do_action('edit_tag_form', $tag);
|
||||||
|
Loading…
Reference in New Issue
Block a user