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

WordPress Trac noreply at wordpress.org
Thu Jan 24 01:11:17 UTC 2013


#17923: add_query_arg() should encode values
---------------------------------+-----------------------------
 Reporter:  Viper007Bond         |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  General              |     Version:  3.2
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.6-early  |
---------------------------------+-----------------------------

Comment (by Viper007Bond):

 Silencing errors via `@` should be avoided if possible. Since it's a
 variable now, instead of this:

 {{{
 if ( true === @$args[3] )
 }}}

 We can just do this:

 {{{
 if ( ! empty( $args[3] ) )
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17923#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list