]> 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 8e1b827c479e27e790102891585088866fbb00d2..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;
        }