[wp-trac] [WordPress Trac] #17923: add_query_arg() should encode values

WordPress Trac noreply at wordpress.org
Thu Oct 15 06:01:59 UTC 2015


#17923: add_query_arg() should encode values
-------------------------------------+-----------------------------
 Reporter:  Viper007Bond             |       Owner:
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  General                  |     Version:  3.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 I'd be interested to know what the following code in `add_query_arg()`
 does. It appears to encode the URL's query arguments, but evidently
 doesn't:

 {{{
 wp_parse_str( $query, $qs );
 $qs = urlencode_deep( $qs ); // this re-URL-encodes things that were
 already in the query string
 }}}

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


More information about the wp-trac mailing list