WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP Fluid Images
HTTPS please (4 posts)

  1. Matt Cromwell
    Member
    Posted 2 years ago #

    Can you update your code to load as https? The plugin is causing mixed content errors in ecommerce sites. Thanks!

    http://wordpress.org/plugins/wp-fluid-images/

  2. Matt Cromwell
    Member
    Posted 2 years ago #

    I found this topic on the subject:
    http://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account

    Would be great to see this fixed in your otherwise excellent plugin.

  3. Matt Cromwell
    Member
    Posted 2 years ago #

    OK, I just went and figured out the fix myself. If anyone else would like to avoid "mixed content" warnings for sites that use SSL and want to use this plugin the fix is pretty easy:

    Go into wp-fluid-images/plugin.php and find this at line 19(ish)

    if ( !is_admin() ) { // instruction to only load if it is not the admin area
    		$foo_loc = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));
    		$js_loc = $foo_loc . '/lib/';
    		wp_register_script('fluidimage', $js_loc.'fluidimage.js', array('jquery'), '1.0',false);
    		wp_enqueue_script('fluidimage');
    	}

    Change it to this and you've got your green padlock back!

    if ( !is_admin() ) { // instruction to only load if it is not the admin area
    		$js_loc = plugins_url( 'lib/', __FILE__ );
    		wp_register_script('fluidimage', $js_loc.'fluidimage.js', array('jquery'), '1.0',false);
    		wp_enqueue_script('fluidimage');
    	}

    Hope that's useful for someone!

  4. Svetoslav Marinov
    Member
    Posted 2 years ago #

    cool

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Fluid Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic