diff --git a/admin/create-theme/theme-readme.php b/admin/create-theme/theme-readme.php index 0455c1d2..9aa9c719 100644 --- a/admin/create-theme/theme-readme.php +++ b/admin/create-theme/theme-readme.php @@ -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}