[wp-trac] [WordPress Trac] #27733: wpautop(): \s in regex destroys some UTF-8 characters

WordPress Trac noreply at wordpress.org
Wed Sep 3 11:46:13 UTC 2014


#27733: wpautop(): \s in regex destroys some UTF-8 characters
-------------------------------------------------+-------------------------
 Reporter:  tenpura                              |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  normal                               |     Version:  0.71
 Keywords:  4.0-early needs-patch needs-unit-    |  Resolution:
  tests wpautop                                  |     Focuses:
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:5 miqrogroove]:
 > Note this character terminates with 0xA0.  This problem should be partly
 fixed now in trunk as wp_spaces_regexp() has been implemented for
 compatibility with smilies, shortcodes, and various wptexturize patterns.

 I can still reproduce the issue in the latest trunk.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27733#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list