[wp-trac] [WordPress Trac] #34939: Shortcode regex no longer matches [shortcode=XXX]

WordPress Trac noreply at wordpress.org
Mon Dec 21 17:39:43 UTC 2015


#34939: Shortcode regex no longer matches [shortcode=XXX]
-------------------------------------+--------------------------
 Reporter:  kraftbj                  |       Owner:  miqrogroove
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.4.1
Component:  Shortcodes               |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------------
Changes (by aaroncampbell):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 [attachment:34939.diff] adds '=' to the list of reserved characters in the
 regex as well as the warning text. It also trims '=' from the left side of
 the attributes string, so that the resulting attribute from
 `[shortcode=http://wordpress.org]` is just 'http://wordpress.org'.

 There is a new test added as well, but I noted in two different comments
 that the `[shortcode=http://wordpress.org]` format is NOT recommended (I'd
 love to see it go away some day, so less reliance on it would be a plus).

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


More information about the wp-trac mailing list