Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:21:01 +02:00
parent 69d2108394
commit 85131b360f

View file

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