diff --git a/includes/create-theme/theme-styles.php b/includes/create-theme/theme-styles.php index ca31e9fd..16d62e49 100644 --- a/includes/create-theme/theme-styles.php +++ b/includes/create-theme/theme-styles.php @@ -25,8 +25,7 @@ public static function update_style_css( $style_css, $theme ) { $author = stripslashes( $theme['author'] ); $author_uri = $theme['author_uri']; $wp_version = CBT_Theme_Utils::get_current_wordpress_version(); - $wp_min = $theme['requires_wp']; - $wp_min = $wp_min ? $wp_min : '6.0'; + $wp_min = isset( $theme['requires_wp'] ) && $theme['requires_wp'] ? $theme['requires_wp'] : '6.0'; $version = $theme['version']; $requires_php = $current_theme->get( 'RequiresPHP' ); $text_domain = $theme['slug'];