Opened 9 years ago
Closed 9 years ago
#37108 closed defect (bug) (duplicate)
Remove hardcoded 'https://' from wordpress
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5.2 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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)
Note: See
TracTickets for help on using
tickets.
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.