diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index 6e4fd80..a9c5d4e 100644
a
|
b
|
function wp_get_available_translations() { |
2213 | 2213 | function wp_install_download_language_pack( $language ) { |
2214 | 2214 | // Check if the language is already installed. |
2215 | 2215 | $available_languages = get_available_languages(); |
2216 | | if ( in_array( $language->language, $available_languages ) ) { |
2217 | | return $language->language; |
| 2216 | if ( in_array( $language, $available_languages ) ) { |
| 2217 | return $language; |
2218 | 2218 | } |
2219 | 2219 | |
2220 | 2220 | // Confirm the language is one we can download. |