[wp-trac] [WordPress Trac] #23307: shortcode_parse_atts may return empty string
WordPress Trac
noreply at wordpress.org
Wed Feb 19 23:46:52 UTC 2014
#23307: shortcode_parse_atts may return empty string
------------------------------------------+------------------
Reporter: GaryJ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Shortcodes | Version:
Severity: minor | Resolution:
Keywords: needs-unit-tests needs-patch | Focuses:
------------------------------------------+------------------
Changes (by GaryJ):
* keywords: has-patch needs-unit-tests => needs-unit-tests needs-patch
Comment:
Here's the latest tagged reference:
https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-
includes/shortcodes.php#L280
Are we happy with just doing:
`$atts[] = ltrim($text);`
so that the `else` returns an array with a single value?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23307#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list