colormag_hide_blog_front is empty string
-
In front-page.php
get_theme_mod( 'colormag_hide_blog_front', 0 )
return an empty string of the option is unset not zerotherefor
0 == get_theme_mod( 'colormag_hide_blog_front', 0 )
evaluates to false in PHP 8 if the option is unset where it should be truepatched with :
1 != get_theme_mod( 'colormag_hide_blog_front', 0 )
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘colormag_hide_blog_front is empty string’ is closed to new replies.
