[wp-trac] [WordPress Trac] #37493: shortcodes of the format [shortcode value] no longer recognized

WordPress Trac noreply at wordpress.org
Wed Jul 27 23:21:30 UTC 2016


#37493: shortcodes of the format [shortcode value] no longer recognized
--------------------------+-----------------------------
 Reporter:  WayneAllen    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Shortcodes    |    Version:  4.5.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 At some point in the shortcode rewrite we lost a feature.

 Previously a shortcode of the form [shortcode value] would work. As of
 4.5.3 it doesn't (I didn't work backwards to see where it broke).

 At line 213 in shortcodes.php the statement
 {{{#!php
 preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
 }}}


 This returns the array `['shortcode value']` rather than `['shortcode']`
 and therefore fails the test looking for known shortcodes.

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


More information about the wp-trac mailing list