[wp-trac] [WordPress Trac] #5015: Add_Filter priority fails with
some hooks
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 19 19:33:57 GMT 2007
#5015: Add_Filter priority fails with some hooks
----------------------+-----------------------------------------------------
Reporter: mattyrob | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.3
Component: General | Version: 2.3
Severity: normal | Keywords: plugin add_filter
----------------------+-----------------------------------------------------
The ability to give a plugin function that is being added as a filter
fails if it is called by hooking in an array:
For example:
add_filter('the_content', 'my_filter', 1); // works fine
add_filter('the_content', array(&$this, 'filter'), 1); // fails
--
Ticket URL: <http://trac.wordpress.org/ticket/5015>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list