mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-03 22:21:35 +01:00
The Hook that never was. Use correct / Revert back-compat hookname changes in [15820]. See #12285
git-svn-id: http://svn.automattic.com/wordpress/trunk@15823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c62d0b2e1b
commit
508bbe1fe8
@ -339,9 +339,9 @@ do_action($taxonomy . '_add_form_fields', $taxonomy);
|
||||
<?php
|
||||
// Back compat hooks. Deprecated in preference to {$taxonomy}_add_form
|
||||
if ( 'category' == $taxonomy )
|
||||
do_action('add_category_form', (object)array('parent' => 0) );
|
||||
do_action('edit_category_form', (object)array('parent' => 0) );
|
||||
elseif ( 'link_category' == $taxonomy )
|
||||
do_action('add_link_category_form', (object)array('parent' => 0) );
|
||||
do_action('edit_link_category_form', (object)array('parent' => 0) );
|
||||
else
|
||||
do_action('add_tag_form', $taxonomy);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user