Title: Adds non-https CSS file to admin pages
Last modified: August 30, 2016

---

# Adds non-https CSS file to admin pages

 *  Resolved [dlouwe](https://wordpress.org/support/users/dlouwe/)
 * (@dlouwe)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adds-non-https-css-file-to-admin-pages/)
 * Currently the plugin uses WP_PLUGIN_URL to determine the plugin’s URL which is
   used to queue its CSS. However, this doesn’t account for HTTPS and causes the
   browser to show warnings about “insecure content” on admin pages.
 * From what I can tell, it should use plugins_url() instead of WP_PLUGINS_URL.
 * More info:
    [https://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account](https://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account)
   [https://core.trac.wordpress.org/ticket/13941](https://core.trac.wordpress.org/ticket/13941)
   [http://codex.wordpress.org/Determining_Plugin_and_Content_Directories](http://codex.wordpress.org/Determining_Plugin_and_Content_Directories)
 * [https://wordpress.org/plugins/really-simple-ssl/](https://wordpress.org/plugins/really-simple-ssl/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adds-non-https-css-file-to-admin-pages/#post-6435032)
 * Thanks for the feedback. Because the wp_plugin_url is based on the siteurl, which
   is converted to https by the plugin, this should not be an issue. It might possible
   that immediately after activation, the wp_plugin_url is still based on a http
   link. But when you refresh or login again, this should be fixed. I will investigate
   this.
 * If this is not the case in your setup, I would be very interested to see what
   happens on your website.
 * In the next release, I will change the plugin_url according to your suggestion.
 *  Thread Starter [dlouwe](https://wordpress.org/support/users/dlouwe/)
 * (@dlouwe)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adds-non-https-css-file-to-admin-pages/#post-6435108)
 * It looks like this issue was being caused by my WP_SITEURL and WP_HOME being 
   set as http:// in my wp-config. I can see that the plugin tries to account for
   this, but unfortunately I don’t have a lot of time right now to try to debug 
   why it didn’t/isn’t working in my particular case. However I can at least tell
   you that the plugins_url() function will correctly determine the URL as https
   regardless of how WP_SITEURL and WP_HOME are set.
 * For now I’ll manually change my wp-config to use https as that does fix the issue,
   and really I should have done that in the first place.
 * Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adds non-https CSS file to admin pages’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dlouwe](https://wordpress.org/support/users/dlouwe/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/adds-non-https-css-file-to-admin-pages/#post-6435108)
 * Status: resolved