[wp-trac] [WordPress Trac] #24661: remove_accents is not removing combining accents

WordPress Trac noreply at wordpress.org
Thu Nov 28 20:38:53 UTC 2013


#24661: remove_accents is not removing combining accents
----------------------------------+--------------------
 Reporter:  NumidWasNotAvailable  |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  3.8
Component:  Formatting            |     Version:  1.2.1
 Severity:  normal                |  Resolution:
 Keywords:  has-patch commit      |
----------------------------------+--------------------

Comment (by p_enrique):

 The current patch uses `preg_replace()` with the `u`-modifier without
 checking if the PCRE UTF-8 extension is active. This will throw warnings
 and blanks the string. There should be a check for the extension and a
 fallback to plain UTF-8 bytes. And since we're using the UTF-8 extension,
 we can use the Unicode character properties for filtering. See attached
 patch.

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


More information about the wp-trac mailing list