Changeset 47550 for trunk/src/wp-admin/includes/translation-install.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/translation-install.php
r47230 r47550 21 21 require ABSPATH . WPINC . '/version.php'; 22 22 23 if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) {23 if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ), true ) ) { 24 24 return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) ); 25 25 } … … 177 177 esc_attr( current( $language['iso'] ) ), 178 178 esc_attr( $language['strings']['continue'] ?: 'Continue' ), 179 in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',179 in_array( $language['language'], $installed_languages, true ) ? ' data-installed="1"' : '', 180 180 esc_html( $language['native_name'] ) 181 181 ); … … 191 191 esc_attr( current( $language['iso'] ) ), 192 192 esc_attr( $language['strings']['continue'] ?: 'Continue' ), 193 in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',193 in_array( $language['language'], $installed_languages, true ) ? ' data-installed="1"' : '', 194 194 esc_html( $language['native_name'] ) 195 195 ); … … 212 212 function wp_download_language_pack( $download ) { 213 213 // Check if the translation is already installed. 214 if ( in_array( $download, get_available_languages() ) ) {214 if ( in_array( $download, get_available_languages(), true ) ) { 215 215 return $download; 216 216 }
Note: See TracChangeset
for help on using the changeset viewer.