Kirki deprecated fix

This commit is contained in:
Alexander Agnarson 2025-04-09 20:24:50 +02:00
parent e95798907a
commit a18b6645d8

View file

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