WP Admin SSL Errors – please enqueue mailchimpSF_main_css w/ relative call
-
Hi there!
We run WordPress admin in SSL mode, but the mailchimpSF_main_css is called via wp_enqueue_style defaulting to http (non-SSL) which results in SSL errors on WP admin.
I fixed this by editing mailchimp.php, line 114 from this:
//wp_enqueue_style('mailchimpSF_main_css', home_url('?mcsf_action=main_css&ver='.MCSF_VER));to this:
wp_enqueue_style('mailchimpSF_main_css', home_url('?mcsf_action=main_css&ver='.MCSF_VER, 'relative'));Just added the ‘relative’ parameter to wp_enqueue_style()
That fixed the issue – and now the file is called in the same manner as the webpage – http or https, so no SSL errors in the browser.
Please update the plugin code with this so it’s not overwritten on update. 🙂
Thanks!
The topic ‘WP Admin SSL Errors – please enqueue mailchimpSF_main_css w/ relative call’ is closed to new replies.