[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:32:36 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:  closed
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:  duplicate
 Keywords:                 |     Focuses:
---------------------------+------------------------

Comment (by apedog):

 Change the last parameter {{{'3.2.0'}}} to {{{null}}} (not {{{false}}} -
 that will just add the WP version).
 The {{{'ver'}}} prameter is used for cache-busting resources hosted on
 your site. So it's irrelevant when linking to external resources.
 ie. you shouldn't add the {{{'ver'}}} parameter to ''any'' external
 sources anyway.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50106#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list