[wp-trac] [WordPress Trac] #10535: _wp_filter_build_unique_id issues with the first time a filter is hooked by a class
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 2 12:22:18 UTC 2009
#10535: _wp_filter_build_unique_id issues with the first time a filter is hooked by
a class
---------------------------+------------------------------------------------
Reporter: simonwheatley | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Plugins | Version:
Severity: normal | Keywords:
---------------------------+------------------------------------------------
Ref #8723
The first time _wp_filter_build_unique_id is used to generate an ID the ID
returned is different to the second time it is called. This presents a
problem if the first ID is used when adding a filter which then needs to
be removed later in the app flow... as the IDs don't match the filter is
unremovable.
One workaround proposed is to set a wp_filter_id property before add the
filter, and this will cause _wp_filter_build_unique_id to bypass the
problem code and effectively forces the "unique" ID which is generated...
this workaround feels unpoetic. ;)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10535>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list