[wp-trac] [WordPress Trac] #9968: dynamically adding/removing filters breaks plugins
WordPress Trac
noreply at wordpress.org
Fri May 10 04:32:47 UTC 2013
#9968: dynamically adding/removing filters breaks plugins
-------------------------------------+-----------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: reopened
Priority: low | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Comment (by solarissmoke):
Akismet is probably the most widely used plugin that does this (calls
`remove_action` on a currently active filter) and it breaks a lot of other
plugins that use that filter ( [http://wordpress.org/support/topic
/akismet-breaks-the-pre_comment_approved-filter-for-other-plugins Bug
report] and [http://plugins.trac.wordpress.org/ticket/1625 trac ticket]).
If this is difficult to fix outright, perhaps we could raise a debug error
when `remove_action` is called on an active filter? At least that way
plugin developers would get a warning when they're doing it wrong.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9968#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list