[wp-trac] [WordPress Trac] #29658: Curly quotes injected into short code attributes when special characters present

WordPress Trac noreply at wordpress.org
Sat Sep 13 15:02:48 UTC 2014


#29658: Curly quotes injected into short code attributes when special characters
present
--------------------------+------------------------------
 Reporter:  msimpson      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by msimpson):

 == Short code attributes incorrectly parsed when space present ==
 Additional effect of the bug. Given this short code entered in '''Text'''
 mode in the editor

 {{{
 [quotebug filter="submit_time>-6 days"]
 }}}

 It parses it incorrectly, breaking at the space inside of the quoted
 values, producing an extra "0" attribute with value "days".

 {{{
 filter=”submit_time>-6
 0=days”
 }}}

 Also notice that "filter" has the injected begin curly quote and "0" has
 the injected end curly quote.

 whereas if I toggled to Visual mode and preview again, I get the expected:

 {{{
 filter=submit_time>-6 days
 }}}

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


More information about the wp-trac mailing list