Skip to content

Commit a0cb5e0

Browse files

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inc/lazyload_replacer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public static function get_background_lazyload_selectors() {
115115
return self::$background_lazyload_selectors;
116116
}
117117

118+
if ( ! isset( self::instance()->settings ) ) {
119+
self::$background_lazyload_selectors = [];
120+
121+
return self::$background_lazyload_selectors;
122+
}
118123
if ( self::instance()->settings->get( 'bg_replacer' ) === 'disabled' ) {
119124
self::$background_lazyload_selectors = [];
120125
return self::$background_lazyload_selectors;

0 commit comments

Comments
 (0)