Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:19:54 +02:00
parent 5f715c97a5
commit 6f35e2d67f

View file

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