[wp-trac] [WordPress Trac] #21399: Twenty Twelve: use protocol relative URL to load Google Fonts

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 30 20:19:31 UTC 2012


#21399: Twenty Twelve: use protocol relative URL to load Google Fonts
---------------------------+------------------
 Reporter:  lancewillett   |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  3.5
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------

Comment (by nacin):

 Prior to 3.5, `//` is considered a path-relative URL, and the site URL is
 prepended. So that's a no-go.

 We could consider a version check, and then register // if we're good, and
 otherwise, checking is_ssl(). Not as elegant as a straight is_ssl() check,
 but at least sets the expectation that you can now do // with enqueues.

 Might complicate the theme more than it should, though. I'm fine with a
 straight is_ssl() check.

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


More information about the wp-trac mailing list