From e8610fb59080bbe7b40fde870878b9c1e99dec14 Mon Sep 17 00:00:00 2001 From: Bernardo Dias Date: Mon, 9 Jun 2014 12:06:27 -0300 Subject: [PATCH] check if it is a ssl connection and change de protocol for wp_register --- dependency-minification.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dependency-minification.php b/dependency-minification.php index bd2e385..8b486b7 100644 --- a/dependency-minification.php +++ b/dependency-minification.php @@ -656,6 +656,7 @@ static function filter_print_dependency_array( array $handles, $type ) { $new_handle = sprintf('minified-%d', self::$minified_count); $filtered_handles[] = $new_handle; $src = self::get_dependency_minified_url( $deps, $type ); + if (is_ssl()) $src = str_replace( 'http', 'https', $src ); // Deps are registered without versions since the URL includes the version (ver_hash) if ( 'scripts' === $type ) {