Skip to content

Commit

Permalink
fix data attribute name to make responsive iframes work
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Nov 27, 2017
1 parent 0721120 commit 2e87c09
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 2e87c09

Please sign in to comment.