]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/translation-install.php
WordPress 4.4.1-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / translation-install.php
index 25358f448fd7cbd4c50a39e99c4c8abe74196145..2056838f003621004a1bd141ae2f0605a617be44 100644 (file)
@@ -94,7 +94,7 @@ function translations_api( $type, $args = null ) {
  *               in an error, an empty array will be returned.
  */
 function wp_get_available_translations() {
-       if ( ! defined( 'WP_INSTALLING' ) && false !== ( $translations = get_site_transient( 'available_translations' ) ) ) {
+       if ( ! wp_installing() && false !== ( $translations = get_site_transient( 'available_translations' ) ) ) {
                return $translations;
        }
 
@@ -124,6 +124,8 @@ function wp_get_available_translations() {
  *
  * @since 4.0.0
  *
+ * @global string $wp_local_package
+ *
  * @param array $languages Array of available languages (populated via the Translation API).
  */
 function wp_install_language_form( $languages ) {