Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:25:25 +02:00
parent 11db77c5b6
commit 124f879b21

View file

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