]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/translation-install.php
WordPress 4.6.1
[autoinstalls/wordpress.git] / wp-admin / includes / translation-install.php
index 8e1b827c479e27e790102891585088866fbb00d2..ee8254d500991a736d85c63e09788c8a0516f88f 100644 (file)
@@ -72,7 +72,7 @@ function translations_api( $type, $args = null ) {
        }
 
        /**
-        * Filter the Translation Install API response results.
+        * Filters the Translation Install API response results.
         *
         * @since 4.0.0
         *
@@ -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;
        }