Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:22:47 +02:00
parent e6e7e16b6d
commit cbc9b0912b

View file

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