Skip to content

Commit

Permalink
Use current wordpress version if none is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Sep 17, 2024
1 parent 416b149 commit f983c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/create-theme/theme-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +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 = isset( $theme['requires_wp'] ) && $theme['requires_wp'] ? $theme['requires_wp'] : '6.0';
$wp_min = $theme['requires_wp'] ?? CBT_Theme_Utils::get_current_wordpress_version();
$version = $theme['version'];
$requires_php = $current_theme->get( 'RequiresPHP' );
$text_domain = $theme['slug'];
Expand Down

0 comments on commit f983c4e

Please sign in to comment.