Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#37108 closed defect (bug) (duplicate)

Remove hardcoded 'https://' from wordpress

Reported by: yratof's profile yratof Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.2
Component: General Keywords:
Focuses: Cc:

Description (last modified by ocean90)

Remove all instances of HTTP and HTTPS from wordpress and replace with // for the site to fetch the correct url. Especially when working locally or on a test domain.

Found in this file: wp-includes/scripts-loader.php

// Hotlink Open Sans, for now
$open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";

Change History (2)

#1 @ocean90
9 years ago

  • Description modified (diff)

#2 @jorbin
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Welcome to trac yratof.
Protocal-relative URLs are an anti-pattern that is best for us to avoid. #21153 contains a bit more information and some previous discussion as well.

Note: See TracTickets for help on using tickets.