mirror of
https://ghproxy.net/https://github.com/AlxMedia/alx-extensions.git
synced 2025-08-26 15:53:37 +08:00
Settings name fix
This commit is contained in:
parent
73543bb10e
commit
f75cbd3b31
3 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ function alx_ext_thumbnail_upscale( $default, $orig_w, $orig_h, $new_w, $new_h,
|
|||
return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h );
|
||||
}
|
||||
|
||||
$enable_image_upscale = get_theme_mod( 'enable_image_upscale', true );
|
||||
$enable_image_upscale = get_theme_mod( 'enable-image-upscale', true );
|
||||
if ( true === $enable_image_upscale ) {
|
||||
add_filter( 'image_resize_dimensions', 'alx_ext_thumbnail_upscale', 10, 6 );
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ function alx_ext_custom_options() {
|
|||
|
||||
Kirki::add_field( 'enable_social_share', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'enable_social_share',
|
||||
'settings' => 'enable-social-share',
|
||||
'label' => esc_html__( 'Enable Social Share', 'alx-extensions' ),
|
||||
'section' => 'alx_extensions_social',
|
||||
'default' => 'on',
|
||||
|
@ -48,7 +48,7 @@ function alx_ext_custom_options() {
|
|||
|
||||
Kirki::add_field( 'enable_image_upscale', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'enable_image_upscale',
|
||||
'settings' => 'enable-image-upscale',
|
||||
'label' => esc_html__( 'Enable Image Upscale', 'alx-extensions' ),
|
||||
'section' => 'alx_extensions_upscale',
|
||||
'default' => 'on',
|
||||
|
|
|
@ -8,7 +8,7 @@ add_action( 'plugins_loaded', 'alx_ext_sharrre_actions' );
|
|||
/* template */
|
||||
function alx_ext_sharrre_template() {
|
||||
|
||||
$enable_social_share = get_theme_mod( 'enable_social_share', true );
|
||||
$enable_social_share = get_theme_mod( 'enable-social-share', true );
|
||||
if ( true !== $enable_social_share ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue