Skip to content

Commit

Permalink
Add default value for recommended plugin section (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales authored Jun 27, 2023
1 parent 8ffe961 commit 0833d60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions admin/create-theme/theme-readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public static function build_readme_txt( $theme ) {
$copyright_section = self::copyright_section( $new_copyright_section, $original_theme_credits, $name, $copy_year, $author, $image_credits );

// Handle recommended plugins section.
if ( $recommended_plugins ) {
$recommended_plugins_section = self::recommended_plugins_section( $recommended_plugins );
}
$recommended_plugins_section = self::recommended_plugins_section( $recommended_plugins ) ?? '';

return "=== {$name} ===
Contributors: {$author}
Expand Down

0 comments on commit 0833d60

Please sign in to comment.