Skip to content

Commit

Permalink
Merge pull request #31 from wp-media/fix/24-responsive-iframes
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
Screenfeed authored Nov 27, 2017
2 parents 0721120 + 2e87c09 commit 3a1949b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocket-lazy-load.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Lazy Load by WP Rocket
* Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
* Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
* Version: 1.4.4
* Version: 1.4.5
* Author: WP Media
* Author URI: https://wp-rocket.me
* Text Domain: rocket-lazy-load
Expand Down Expand Up @@ -505,7 +505,7 @@ function rocket_lazyload_iframes( $html ) {
*
* @param array $html Output that will be printed.
*/
$iframe_lazyload = apply_filters( 'rocket_lazyload_iframe_html', str_replace( $iframe[1], $placeholder . '" data-fitvidscompatible="1" data-lazy-src="' . $iframe[1], $iframe[0] ) );
$iframe_lazyload = apply_filters( 'rocket_lazyload_iframe_html', str_replace( $iframe[1], $placeholder . '" data-rocket-lazyload="fitvidscompatible" data-lazy-src="' . $iframe[1], $iframe[0] ) );
$iframe_lazyload .= $iframe_noscript;

$html = str_replace( $iframe[0], $iframe_lazyload, $html );
Expand Down

0 comments on commit 3a1949b

Please sign in to comment.