Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:20:01 +02:00
parent 6479f87a8c
commit a4a1e009b9

View file

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