[wp-trac] [WordPress Trac] #31306: add_query_arg changes numerical arguments

WordPress Trac noreply at wordpress.org
Wed Apr 1 19:14:50 UTC 2015


#31306: add_query_arg changes numerical arguments
------------------------------+-----------------------------
 Reporter:  Lex_Robinson      |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.2
Component:  General           |     Version:  4.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31966"]:
 {{{
 #!CommitTicketReference repository="" revision="31966"
 Respect numerical keys in `add_query_arg()`, use `array_replace()` instead
 of `array_merge()`.

 Adds unit test.

 Props tyxla.
 Fixes #31306.
 }}}

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


More information about the wp-trac mailing list