[wp-trac] [WordPress Trac] #50106: `wp_parse_str` as used by `add_query_arg` breaks URLs with the same query var name used multiple times
WordPress Trac
noreply at wordpress.org
Wed May 6 16:26:43 UTC 2020
#50106: `wp_parse_str` as used by `add_query_arg` breaks URLs with the same query
var name used multiple times
--------------------------+-----------------------------
Reporter: wpsmith | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Changes (by ocean90):
* version: trunk =>
* milestone: Awaiting Review => Future Release
Comment:
Noting that `wp_parse_str()` is currently a simple wrapper for PHP's own
`parse_str()` function. The behaviour we are seeing here is also
[https://www.php.net/manual/en/function.parse-str.php#76792 documented in
a user note].
Since we already have this wrapper we could include a possible fix there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50106#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list