[wp-trac] [WordPress Trac] #30449: shortcode_parse_atts returns incorrect info
WordPress Trac
noreply at wordpress.org
Sun Nov 23 11:43:17 UTC 2014
#30449: shortcode_parse_atts returns incorrect info
--------------------------+-------------------------
Reporter: nampara17 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Shortcodes | Version: 4.0.1
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review =>
Old description:
> The function shortcode_parse_atts returns an array but parses any params
> incorrectly
>
> If you pass it:
> title=”Tab 1 Title”
>
> It returns:
> (
> [title] => ”Tab
> [0] => 1
> [1] => Title”
> )
>
> and not:
> (
> [title] => ”Tab 1 Title"
> )
>
> Never did this before and seems to be breaking wherever there are params
> with spaces (delimits on the spaces)
New description:
The function shortcode_parse_atts returns an array but parses any params
incorrectly
If you pass it:
{{{
title=”Tab 1 Title”
}}}
It returns:
{{{
(
[title] => ”Tab
[0] => 1
[1] => Title”
)
}}}
and not:
{{{
(
[title] => ”Tab 1 Title"
)
}}}
Never did this before and seems to be breaking wherever there are params
with spaces (delimits on the spaces)
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30449#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list