[wp-trac] [WordPress Trac] #17657: Shortcode regex doesn't allow for hyphens in shortcode name
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 14:29:19 UTC 2011
#17657: Shortcode regex doesn't allow for hyphens in shortcode name
-------------------------------------------------+-------------------------
Reporter: sivel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Shortcodes | Review
Severity: normal | Version: 3.2
Keywords: needs-patch dev-feedback 2nd- | Resolution:
opinion |
-------------------------------------------------+-------------------------
Comment (by aaroncampbell):
I verified this, and even write some basic unit tests. It only seems to
happen with a hyphen. Using realshortcode-notreal passes '-notreal' as
the first element (index 0) of the attributes array, but
realshortcode_notreal and realshortcodenotreal work as expected.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17657#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list