Skip to content

Commit 29328e5

Browse files
committed
remove clean
1 parent 8a4d8e4 commit 29328e5

File tree

1 file changed

+1
-5
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media

1 file changed

+1
-5
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,7 @@ public function filter_out_local( $content ) {
347347
}
348348

349349
// Apply lazy loading attribute
350-
if (
351-
apply_filters( 'wp_lazy_loading_enabled', true ) &&
352-
false === strpos( $new_tag, 'loading="lazy"' ) &&
353-
$clean
354-
) {
350+
if ( apply_filters( 'wp_lazy_loading_enabled', true ) && false === strpos( $new_tag, 'loading="lazy"' ) ) {
355351
$new_tag = str_replace( '/>', ' loading="lazy" />', $new_tag );
356352
}
357353

0 commit comments

Comments
 (0)