[wp-trac] [WordPress Trac] #35022: WP allows Unicode 0x00a0 spaces in editor but shortcode parser can't handle them

WordPress Trac noreply at wordpress.org
Mon Mar 21 16:34:34 UTC 2016


#35022: WP allows Unicode 0x00a0 spaces in editor but shortcode parser can't handle
them
--------------------------+-----------------------------
 Reporter:  steevithak    |       Owner:
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Future Release
Component:  Shortcodes    |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by steevithak):

 Sounds good, I like the idea of consolidating the char list in one place
 as a define. I chose \s because it seemed to cover the most cases in the
 smallest space. However, in addition to 200B, I found this list of quasi-
 whitespace Unicode chars that are not recognized \s:

 http://stackoverflow.com/questions/3469080/match-whitespace-but-not-
 newlines-perl

 Maybe an alternate/easier way is to consider a shortcode terminated
 character to be *any* character that's not legal for use in the shortcode
 name? Maybe something like ^\w (or whatever the appropriate list is if not
 \w)?

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


More information about the wp-trac mailing list