[wp-trac] [WordPress Trac] #23853: Add support for relative URLs in add_query_arg

WordPress Trac noreply at wordpress.org
Sun Mar 24 06:38:11 UTC 2013


#23853: Add support for relative URLs in add_query_arg
-----------------------------+--------------------------
 Reporter:  chengas123       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 I have to call add_query_arg with the protocol:

 {{{
 add_query_arg( $query_args, "http://fonts.googleapis.com/css" )
 }}}


 However, I'd prefer to leave it off and believe that's generally the
 better practice:

 {{{
 add_query_arg( $query_args, "//fonts.googleapis.com/css" )
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23853>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list