Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:22:56 +02:00
parent a1cb6bfc38
commit ff4c7d0e79

View file

@ -725,4 +725,17 @@ function incolor_skip_link_focus_fix() {
</script>
<?php
}
add_action( 'wp_print_footer_scripts', 'incolor_skip_link_focus_fix' );
add_action( 'wp_print_footer_scripts', 'incolor_skip_link_focus_fix' );
/* Kirki deprecated fix
/* ------------------------------------ */
function incolor_kirki_config( $config ) {
if ( isset( $config['compiler'] ) ) {
unset( $config['compiler'] );
}
return $config;
}
add_filter( 'kirki/config', 'incolor_kirki_config', 999 );