Support » Plugins and Hacks » [Resolved] [Plugin: EG-Attachments] SSL compatibility

[Resolved] [Plugin: EG-Attachments] SSL compatibility

  • EG Attachments can cause error on SSL-enabled site, because it loads CSS file via HTTP regardless enabled HTTPS. To fix this, lib/eg-plugin.inc.php has to be edited:
    $this->plugin_url = trailingslashit(WP_PLUGIN_URL.'/'.$plugin_base_path);
    And replace with:

    This is because WP_PLUGIN_URL is legacy constant that does not take into account SSL. Would be great if author include this with updates.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author emmanuelg


    Hi Gytis

    Thanks for the information. I will modify the file lib/eg-plugin.inc.php. The version 1.8.2 should be published soon.


    Plugin Author emmanuelg


    Version 1.8.2 published with requested modification.

    Great, works smooth now 🙂

    I’m not sure how backwards compatible you’d like to keep your plugin, but in my plugins I usually do something like this.

    if ( version_compare( get_bloginfo('version'), '2.8', '>=' ) ) {
    	$this->plugin_url = plugins_url('', __FILE__);
    } else {
    	$this->plugin_url = WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__));
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: EG-Attachments] SSL compatibility’ is closed to new replies.