mirror of
https://ghproxy.net/https://github.com/AlxMedia/clearwork.git
synced 2025-08-26 07:59:30 +08:00
Kirki deprecated fix
This commit is contained in:
parent
e24baaf017
commit
5c92fecc16
1 changed files with 13 additions and 0 deletions
|
@ -731,3 +731,16 @@ function clearwork_skip_link_focus_fix() {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
add_action( 'wp_print_footer_scripts', 'clearwork_skip_link_focus_fix' );
|
add_action( 'wp_print_footer_scripts', 'clearwork_skip_link_focus_fix' );
|
||||||
|
|
||||||
|
|
||||||
|
/* Kirki deprecated fix
|
||||||
|
/* ------------------------------------ */
|
||||||
|
function clearwork_kirki_config( $config ) {
|
||||||
|
|
||||||
|
if ( isset( $config['compiler'] ) ) {
|
||||||
|
unset( $config['compiler'] );
|
||||||
|
}
|
||||||
|
|
||||||
|
return $config;
|
||||||
|
}
|
||||||
|
add_filter( 'kirki/config', 'clearwork_kirki_config', 999 );
|
Loading…
Add table
Add a link
Reference in a new issue