Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:25:04 +02:00
parent 8c4c147e9e
commit 846eeedcc2

View file

@ -745,3 +745,16 @@ function splits_skip_link_focus_fix() {
<?php
}
add_action( 'wp_print_footer_scripts', 'splits_skip_link_focus_fix' );
/* Kirki deprecated fix
/* ------------------------------------ */
function splits_kirki_config( $config ) {
if ( isset( $config['compiler'] ) ) {
unset( $config['compiler'] );
}
return $config;
}
add_filter( 'kirki/config', 'splits_kirki_config', 999 );