[wp-trac] [WordPress Trac] #14914: Potential Bug in wp_update_term() when using get_term filter
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 15 02:13:40 UTC 2011
#14914: Potential Bug in wp_update_term() when using get_term filter
--------------------------+----------------------
Reporter: jfarthing84 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.0.1
Severity: major | Resolution: invalid
Keywords: dev-feedback |
--------------------------+----------------------
Changes (by mdawaffe):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Interesting issue.
http://core.trac.wordpress.org/browser/tags/3.0.1/wp-
includes/taxonomy.php#L481 says that that functions hooked to the get_term
filter must return a taxonomy object, which your function is not doing.
I suggest refactoring your code. Maybe with a {{{my_get_widget_factory(
$widget_term_id )}}} function or equivalent.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14914#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list