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