mirror of
https://ghproxy.net/https://github.com/AlxMedia/boxstyle.git
synced 2025-08-26 06:17:39 +08:00
Kirki deprecated fix
This commit is contained in:
parent
de6cef2e26
commit
9bb79af187
1 changed files with 14 additions and 1 deletions
|
@ -877,4 +877,17 @@ function boxstyle_disable_lazy_load_featured_images($attr, $attachment = null) {
|
|||
$attr['loading'] = 'eager';
|
||||
return $attr;
|
||||
}
|
||||
add_filter('wp_get_attachment_image_attributes', 'boxstyle_disable_lazy_load_featured_images');
|
||||
add_filter('wp_get_attachment_image_attributes', 'boxstyle_disable_lazy_load_featured_images');
|
||||
|
||||
|
||||
/* Kirki deprecated fix
|
||||
/* ------------------------------------ */
|
||||
function boxstyle_kirki_config( $config ) {
|
||||
|
||||
if ( isset( $config['compiler'] ) ) {
|
||||
unset( $config['compiler'] );
|
||||
}
|
||||
|
||||
return $config;
|
||||
}
|
||||
add_filter( 'kirki/config', 'boxstyle_kirki_config', 999 );
|
Loading…
Add table
Add a link
Reference in a new issue