mirror of
https://ghproxy.net/https://github.com/AlxMedia/featureon.git
synced 2025-08-26 05:49:06 +08:00
Kirki deprecated fix
This commit is contained in:
parent
b108427747
commit
9e5e9d3afa
1 changed files with 14 additions and 1 deletions
|
@ -756,4 +756,17 @@ function featureon_skip_link_focus_fix() {
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
add_action( 'wp_print_footer_scripts', 'featureon_skip_link_focus_fix' );
|
add_action( 'wp_print_footer_scripts', 'featureon_skip_link_focus_fix' );
|
||||||
|
|
||||||
|
|
||||||
|
/* Kirki deprecated fix
|
||||||
|
/* ------------------------------------ */
|
||||||
|
function featureon_kirki_config( $config ) {
|
||||||
|
|
||||||
|
if ( isset( $config['compiler'] ) ) {
|
||||||
|
unset( $config['compiler'] );
|
||||||
|
}
|
||||||
|
|
||||||
|
return $config;
|
||||||
|
}
|
||||||
|
add_filter( 'kirki/config', 'featureon_kirki_config', 999 );
|
Loading…
Add table
Add a link
Reference in a new issue