[wp-trac] [WordPress Trac] #19968: Use named regular expression groups to simplify shortcodes code
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 6 08:21:33 UTC 2012
#19968: Use named regular expression groups to simplify shortcodes code
-------------------------+------------------------------
Reporter: nbachiyski | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.3.1
Severity: minor | Resolution:
Keywords: needs-patch |
-------------------------+------------------------------
Comment (by GaryJ):
[attachment:19968.diff] adds named groups for one of the shortcodes
functions that defines a regex, but not the one that parses the
attributes.
I've not named the group labelled as 4. as that didn't seem to currently
be in use anywhere. If it is, then I'd suggest a name of `self-closing`.
All untested.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19968#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list