megalobo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: “Failed to load content css” since WP 4.8Thanks for your fast response.
So if I read it correctly I can blame the plugin author for not implement it correctly.
In the end I need to tell my customer that they can ignore the red warning banner which is popping up every single time they want to edit a page or post…
We found something in the core of WP but didn’t dig in further:
--- wp-includes/link-template.php.orig2017-06-14 12:04:53.000000000 +0200 +++ wp-includes/link-template.php2017-06-14 12:04:58.000000000 +0200 @@ -3212,7 +3212,7 @@ $url = WP_PLUGIN_URL; -$url = set_url_scheme( $url ); +//$url = set_url_scheme( $url ); if ( !empty($plugin) && is_string($plugin) ) { $folder = dirname(plugin_basename($plugin));Before the
set_url_schemethe url contains https after it only http.By commenting it out it works without any mixed content issues but changing the core of WP feels not like a solution.
The function
plugin_dir_urldelivieres the correct url with https://.We are forcing https with NGinx reverse proxy for every connection via port 80 like this: location / {
return 307 https://$host$request_uri;
}Also to avoid mixed content issues we are using this plugin