WPIntell

Source evidence

Fix for https secured sites

WP Fluid Images · support · 2013-07-30T06:43:00+00:00

complaintsentiment
mediumseverity
0.88relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 25 rows with source links

24.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
SaschaSchwartz unresolved
Hi, thanks for this helpful plugin! I ran into an issue when running this plugin on a https secured login page in a member based network. The plugin url was refered as http instead of https. The following code is a fix for the problem, you might want to upgrade your plugin to the next version. Happy to help! Code: —– <?php /* Plugin Name: WP Fluid Images Plugin URI: http://www.slash25.com Description: WP Fluid Images replaces the fixed width and height attributes so your images resize in a fluid or responsive design. Author: Pat Ramsey Author URI: http://www.slash25.com Version: 1.1.3 License: GNU General Public License v2.0 License URI: http://www.opensource.org/licenses/gpl-license.php */ /** * Returns current plugin url * * @return string Plugin url */ function fluidi_plugin_url() { return plugins_url( basename( __FILE__, ‘.php’ ), dirname( __FILE__ ) ); } add_action( ‘init’, ‘WPFluidSettingsInit’, 15 ); function WPFluidSettingsInit() { //Translations if ( !is_admin() ) { // instruction to only load if it is not the admin area $foo_loc = fluidi_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’); } } add_action ( ‘wp_footer’,’fluidstyle’ ); function fluidstyle() { if(!is_admin()) { echo ‘<span></span><style type=”text/css” class=”fluid-images”>img{max-width:100%;height:auto;}</style>’; } } add_filter( ‘post_thumbnail_html’, ‘s25_remove_image_dimensions’, 30 ); add_filter( ‘image_send_to_editor’, ‘s25_remove_image_dimensions’, 30 ); function s25_remove_image_dimensions($html){ $html = preg_replace( ‘/(width|height)=\”\d*\”\s/’, “”, $html ); return $html; } http://wordpress.org/plugins/wp-fluid-images/

Comments

0 shown

No comments were stored for this source.