From 529a9cefadee4e38f4959b012a9ef126a0eb9bde Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 12 Mar 2017 23:57:34 -0400 Subject: [PATCH] *Ensure home uses the active URL scheme --- includes/class-rocket-async-css.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-rocket-async-css.php b/includes/class-rocket-async-css.php index 3459093..1907bc3 100644 --- a/includes/class-rocket-async-css.php +++ b/includes/class-rocket-async-css.php @@ -248,7 +248,7 @@ public function process_css_buffer( $buffer ) { if ( ! empty( $wpml_url_filters ) ) { remove_filter( 'home_url', array( $wpml_url_filters, 'home_url_filter' ), - 10 ); } - $home = home_url(); + $home = set_url_scheme( home_url() ); // Get our domain $domain = parse_url( $home, PHP_URL_HOST ); //Prepare excluded CSS from options page