Skip to content

Commit 0810948

Browse files
committed
Fix php notice when language info can't be found
1 parent 542f346 commit 0810948

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/wp-org-api

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ foreach ($packages['packages']["wordpress-language"]['core'] as $language => $of
170170
}
171171
}
172172

173+
if ( isset($languages_info[$language]) && isset( $languages_info[$language]['english_name'] ) ) {
174+
$description = "Full Wordpress translation (including themes and core plugins) for {$languages_info[$language]['english_name']} - {$language}";
175+
} else {
176+
$description = "Full Wordpress translation (including themes and core plugins) for $language";
177+
}
173178
$repositories[] = array(
174179
"type" => "package",
175180
"package" => array(

0 commit comments

Comments
 (0)