Notice: include(): Read of 977 bytes failed with errno=14 Bad address in /home/turkishnyradio/domains/turkishnyradio.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 571
Notice: include(): Read of 977 bytes failed with errno=14 Bad address in /home/turkishnyradio/domains/turkishnyradio.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 571
sh\Core\Settings', 'get_instance' ) ) { // @phpstan-ignore-line
return $enabled;
}
$smush_settings = Settings::get_instance();
if ( ! method_exists( $smush_settings, 'get' ) || ! method_exists( $smush_settings, 'get_setting' ) ) {
return $enabled;
}
if ( ! $smush_settings->get( 'lazy_load' ) ) {
return $enabled;
}
$formats = $smush_settings->get_setting( 'wp-smush-lazy_load' );
$formats = ! empty( $formats['format'] ) && is_array( $formats['format'] ) ? array_filter( $formats['format'] ) : [];
$image_formats = array_intersect_key(
$formats,
// Allowlist image formats.
[
'jpeg' => false,
'png' => false,
'gif' => false,
'svg' => false,
]
);
if ( ! empty( $image_formats ) ) {
// One or several image formats are enabled in Smush.
$enabled['images'] = true;
}
if ( ! empty( $formats['iframe'] ) ) {
// Iframe is enabled in Smush.
$enabled['iframes'] = true;
}
return $enabled;
}
}