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

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 25 01:00:04 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        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by toscho):

 In `wp-includes/formatting.php` function `sanitize_title()` there are two
 lines which cause this bug:

 {{{
         if ( 'save' == $context )
                 $title = remove_accents($title);
 }}}

 Later filters don’t get the original string and cannot perform a correct
 transliteration like in earlier versions of WP.
 I have fixed my plugin now by accessing the variable `$raw_title`.

 We really need a working transliteration in the core … *sigh*

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


More information about the wp-trac mailing list