[wp-trac] [WordPress Trac] #33116: do_shortcode('<[shortcode]') doesn't work

WordPress Trac noreply at wordpress.org
Tue Aug 4 06:48:52 UTC 2015

#33116: do_shortcode('<[shortcode]') doesn't work
 Reporter:  Kleor         |       Owner:  miqrogroove
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.2.4
Component:  Shortcodes    |     Version:  4.2.3
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |     Focuses:

Comment (by dd32):

 I support merging this to trunk, we have a patch and no good excuse to
 break it (Although I can recognise that the behaviour isn't seen as the
 "expected" use-cases of shortcodes originally).

 My main question however, is that this now allows for things like
 `<[shortcode]>` to work, but yet it doesn't restore the handling of a
 closing HTML tag: `</[shortcode]>`, which is stupidly simple to support
 here by using `%^<\s*/?\s*\[\[?[^\[\]]+\]%` instead (Addition of `\s*/?`).
 Is there any good reason to skip that? (other than not being the use-case
 reported here)

Ticket URL: <https://core.trac.wordpress.org/ticket/33116#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list