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

WordPress Trac noreply at wordpress.org
Wed Apr 1 19:39:26 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 boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31967"]:
 {{{
 #!CommitTicketReference repository="" revision="31967"
 Avoid the use of `array_replace()` in `add_query_arg()`.

 `array_replace()` was introduced PHP 5.3+. Instead, we walk the array
 manually.

 See [31966].

 Fixes #31306.
 }}}

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


More information about the wp-trac mailing list