[wp-trac] [WordPress Trac] #26104: created_term action hook only passes 1 parameter (should be 3)
WordPress Trac
noreply at wordpress.org
Mon Nov 18 23:50:42 UTC 2013
#26104: created_term action hook only passes 1 parameter (should be 3)
-------------------------+-------------------------------------------------
Reporter: kiddhustle | Owner:
Type: defect | Status: new
(bug) | Milestone: Awaiting Review
Priority: normal | Version: 3.7.1
Component: Taxonomy | Keywords: needs-patch needs-testing needs-
Severity: major | docs
-------------------------+-------------------------------------------------
In the file wp-includes/taxonomy.php - Line: 2209
do_action("created_term", $term_id, $tt_id, $taxonomy);
Shows that the hook callback should expect 3 parameters but I only
received 1.
I see these errors:
"PHP message: PHP Warning: Missing argument 2 for
wiardweb_created_term()"
"PHP message: PHP Warning: Missing argument 3 for
wiardweb_created_term()"
Have attached a sample callback.
Tested using Wordpress 3.7.1
Also the only docs I see relating to this hook is in the wp_insert_term
reference...
http://codex.wordpress.org/Function_Reference/wp_insert_term
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26104>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list