Skip to content

Commit

Permalink
fix #1431
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Sep 10, 2024
1 parent 4ffa4e9 commit 4496f1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/setup/custom-logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package snow-monkey
* @author inc2734
* @license GPL-2.0+
* @version 25.4.6
* @version 27.0.3
*/

use Framework\Helper;
Expand Down Expand Up @@ -34,14 +34,15 @@ function () {
return;
}

$custom_logo = get_custom_logo();
if ( ! $custom_logo ) {
if ( ! has_custom_logo() ) {
return;
}

$sm_logo_scale = get_theme_mod( 'sm-logo-scale' );
$sm_logo_scale = preg_match( '|^\d+$|', $sm_logo_scale ) ? $sm_logo_scale : 100;
$sm_logo_scale = $sm_logo_scale / 100;
$lg_logo_scale = get_theme_mod( 'lg-logo-scale' );
$lg_logo_scale = preg_match( '|^\d+$|', $lg_logo_scale ) ? $lg_logo_scale : 100;
$lg_logo_scale = $lg_logo_scale / 100;

$styles_for_main = array();
Expand Down

0 comments on commit 4496f1c

Please sign in to comment.