mirror of
https://ghproxy.net/https://github.com/AlxMedia/shapebox.git
synced 2025-08-26 14:53:03 +08:00
Kirki deprecated fix
This commit is contained in:
parent
e95798907a
commit
a18b6645d8
1 changed files with 13 additions and 0 deletions
|
@ -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 );
|
Loading…
Add table
Add a link
Reference in a new issue