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

WordPress Trac noreply at wordpress.org
Mon Mar 25 02:39:32 UTC 2013


#23853: Add support for relative URLs in wp_enqueue_style
--------------------------+------------------------------
 Reporter:  chengas123    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------

Comment (by chengas123):

 You're right. Sorry, I misreported this bug originally. It's
 wp_enqueue_style that has a problem with styles that do not include a
 protocol.

 I'm forced to do this:

 {{{
 wp_enqueue_style( 'twentytwelve-fonts', add_query_arg( $query_args,
 "$protocol://fonts.googleapis.com/css" ), array(), null );

 }}}

 When I would like to do this:

 {{{
 wp_enqueue_style( 'twentytwelve-fonts', add_query_arg( $query_args,
 "//fonts.googleapis.com/css" ), array(), null );
 }}}

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


More information about the wp-trac mailing list