[wp-trac] [WordPress Trac] #34939: Shortcode regex no longer matches [shortcode=XXX]
WordPress Trac
noreply at wordpress.org
Thu Dec 17 16:18:54 UTC 2015
#34939: Shortcode regex no longer matches [shortcode=XXX]
--------------------------+--------------------
Reporter: kraftbj | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: Shortcodes | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------
Comment (by aaroncampbell):
Replying to [comment:16 dd32]:
I'm pretty sure that `[shortcode=var]` working was a "happy accident",
with the expected version of that being `[shotcode var]`. I don't think it
was ever documented as working (but I certainly don't claim canonical
knowledge of this) in any "official" documentation (like we had that back
then!). Having said that, it was clearly discovered rather
quickly...probably because of it's common usage in bbcode?
I think the best solution would be to add = to the list of reserved
characters not allowed in a shortcode name. Personally I think that
shortcode names should be `[\w-]`, but I know @miqrogroove did a lot of
research into what people are already using.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34939#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list