[wp-trac] [WordPress Trac] #23307: shortcode_parse_atts may return empty string
WordPress Trac
noreply at wordpress.org
Mon Jan 28 11:15:34 UTC 2013
#23307: shortcode_parse_atts may return empty string
--------------------------+------------------------------
Reporter: GaryJ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version:
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by GaryJ):
* keywords: => has-patch
Comment:
The patch captures when there is no space + characters after the shortcode
tag, to return an empty array.
However, an opening tag, plus some characters / combination of characters
that don't fall into the `$pattern` will still currently return as a
string. The left-trimmed string could be set as the first element of an
array, or cast to an array, but I'm unsure what BC might break from what
is presumably an edge case?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23307#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list