Settings name fix

This commit is contained in:
Alexander Agnarson 2018-09-06 15:08:53 +02:00
parent 73543bb10e
commit f75cbd3b31
3 changed files with 4 additions and 4 deletions

View file

@ -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 );
}