Title: Forcing SSL Breaks Plugin
Last modified: August 21, 2016

---

# Forcing SSL Breaks Plugin

 *  [madcaesar](https://wordpress.org/support/users/madcaesar/)
 * (@madcaesar)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/forcing-ssl-breaks-plugin/)
 * When I switched my WP install into force SSL on the admin area, this plugin breaks,
   because this JS file is not being sent over SSL, so it’s not being loaded:
 * [http://www.myblog.com/wp-content/plugins/preserved-html-editor-markup/admin.js?v=1.5&ver=3.8.1](http://www.myblog.com/wp-content/plugins/preserved-html-editor-markup/admin.js?v=1.5&ver=3.8.1)
 * Is there a quick fix to this? Also, why isn’t the plugin using protocol relative
   links for its dependent files?
 * [https://wordpress.org/plugins/preserved-html-editor-markup/](https://wordpress.org/plugins/preserved-html-editor-markup/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [madcaesar](https://wordpress.org/support/users/madcaesar/)
 * (@madcaesar)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/forcing-ssl-breaks-plugin/#post-4582003)
 * Ok for anyone else running into this issue, I looked through the plugin code 
   and found this line (309):
 *     ```
       wp_enqueue_script('emc2-pm-admin-js', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__))."admin.js?v=".$cachebuster);
       ```
   
 * Change that line to this:
 * `wp_enqueue_script('emc2-pm-admin-js', plugins_url().'/'.str_replace(basename(
   __FILE__),"",plugin_basename(__FILE__))."admin.js?v=".$cachebuster);`
 * That will fix it. The problem is the use of **WP_PLUGIN_URL**. I hope plugin 
   creator will fix this in his next update.

Viewing 1 replies (of 1 total)

The topic ‘Forcing SSL Breaks Plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/preserved-html-editor-markup.svg)
 * [Preserved HTML Editor Markup](https://wordpress.org/plugins/preserved-html-editor-markup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/preserved-html-editor-markup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/preserved-html-editor-markup/)
 * [Active Topics](https://wordpress.org/support/plugin/preserved-html-editor-markup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/preserved-html-editor-markup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/preserved-html-editor-markup/reviews/)

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 1 reply
 * 1 participant
 * Last reply from: [madcaesar](https://wordpress.org/support/users/madcaesar/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/forcing-ssl-breaks-plugin/#post-4582003)
 * Status: not resolved