Skip to content

Commit 8212a01

Browse files
committed
Not filtering the content if is_feed()
1 parent dc6c0b0 commit 8212a01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jq_img_lazy_load.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function action_enqueue_scripts() {
3939
}
4040

4141
function filter_the_content($content) {
42+
if (is_feed()) return $content;
4243
return preg_replace_callback('/(<\s*img[^>]+)(src\s*=\s*"[^"]+")([^>]+>)/i', array($this, 'preg_replace_callback'), $content);
4344
}
4445

0 commit comments

Comments
 (0)