[wp-trac] [WordPress Trac] #37304: Allowing use of single quotes for shortcode empty value attributes

WordPress Trac noreply at wordpress.org
Thu Jul 7 14:17:30 UTC 2016


#37304: Allowing use of single quotes for shortcode empty value attributes
-------------------------------+-----------------------------
 Reporter:  enrico.sorcinelli  |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Shortcodes         |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Recently I created a shortcode allowing empty value attributes.

 An user added an empty attribute by surrounding it with single quotes, for
 example:

 `[my_shortcode 'foo']Lorem ipsum...[/my_shortcode]`

 I was surprised that the returned attribute still contains single quotes
 (for the empty value attributes, the double quotes are stripped instead).

 Even if, of course, this is not a bug, I made a patch allowing also using
 single quotes for shortcode empty value attributes.

 Regards

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37304>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list