Changeset 45583 for trunk/src/wp-admin/includes/translation-install.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/translation-install.php
r45412 r45583 36 36 37 37 if ( false === $res ) { 38 $url = $http_url = 'http://api.wordpress.org/translations/' . $type . '/1.0/'; 39 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) { 38 $url = 'http://api.wordpress.org/translations/' . $type . '/1.0/'; 39 $http_url = $url; 40 $ssl = wp_http_supports( array( 'ssl' ) ); 41 if ( $ssl ) { 40 42 $url = set_url_scheme( $url, 'https' ); 41 43 } … … 118 120 */ 119 121 function wp_get_available_translations() { 120 if ( ! wp_installing() && false !== ( $translations = get_site_transient( 'available_translations' ) ) ) { 121 return $translations; 122 if ( ! wp_installing() ) { 123 $translations = get_site_transient( 'available_translations' ); 124 if ( false !== $translations ) { 125 return $translations; 126 } 122 127 } 123 128
Note: See TracChangeset
for help on using the changeset viewer.