[wp-trac] [WordPress Trac] #16642: Function "remove_filter" does not seem to work right

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 24 15:45:34 UTC 2011


#16642: Function "remove_filter" does not seem to work right
--------------------------+-----------------------------
 Reporter:  1manfactory   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 On my plugin to manipulate permalinks I used this to remove the default
 filter

 {{{
 remove_filter('sanitize_title', 'sanitize_title');
 }}}

 before I add my own filter

 It used to work until Wordpress 3.1

 Now I can see that the filter which should have been removed is still
 active.

 I checked it by manipulating the default filter sanitize_title (\wp-
 includes\formatting.php) in a way that it always gave back a special
 value. And the value always showed up though it should not when using
 ''remove_filter''

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16642>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list