From 932082902bd389a757d8e4451bbbfc42b2a2ad4a Mon Sep 17 00:00:00 2001 From: cjdell Date: Sun, 22 Nov 2015 10:15:13 +0000 Subject: [PATCH] Fix 3rd party assets on HTTPS On converting a site to HTTPS, I was getting browser warnings because the URLs for 3rd party assets were being generated as HTTP not HTTPS. This change fixed the problem. --- includes/init/assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/init/assets.php b/includes/init/assets.php index 8cef4aa..f9cef29 100644 --- a/includes/init/assets.php +++ b/includes/init/assets.php @@ -422,7 +422,7 @@ public static function prepare( $assets = array(), $plugin_name = null ) { } $base_path = WP_PLUGIN_DIR . "/{$plugin_name}"; - $base_url = WP_PLUGIN_URL . "/{$plugin_name}"; + $base_url = plugin_dir_url("/wr-megamenu/{$plugin_name}"); // Prepare assets path foreach ( $assets AS $key => $value ) {