diff --git a/functions.php b/functions.php index bfca073..0ee742c 100644 --- a/functions.php +++ b/functions.php @@ -832,4 +832,17 @@ function typecore_disable_lazy_load_featured_images($attr, $attachment = null) { $attr['loading'] = 'eager'; return $attr; } -add_filter('wp_get_attachment_image_attributes', 'typecore_disable_lazy_load_featured_images'); \ No newline at end of file +add_filter('wp_get_attachment_image_attributes', 'typecore_disable_lazy_load_featured_images'); + + +/* Kirki deprecated fix +/* ------------------------------------ */ +function typecore_kirki_config( $config ) { + + if ( isset( $config['compiler'] ) ) { + unset( $config['compiler'] ); + } + + return $config; +} +add_filter( 'kirki/config', 'typecore_kirki_config', 999 ); \ No newline at end of file