Changeset 28982 for trunk/src/wp-admin/install.php
- Timestamp:
- 07/03/2014 10:30:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install.php
r28906 r28982 201 201 switch($step) { 202 202 case 0: // Step 0 203 if ( $body = wp_get_available_translations() ) { 203 $body = wp_get_available_translations(); 204 if ( $body ) { 204 205 display_header( 'language-chooser' ); 205 206 … … 220 221 if ( ! empty( $_POST['language'] ) ) { 221 222 $body = wp_get_available_translations(); 222 foreach ( $body['languages'] as $language ) { 223 if ( $language['language'] === $_POST['language'] ) { 224 $loading_language = $_POST['language']; 225 break; 223 $loading_language = false; 224 if ( $body ) { 225 foreach ( $body['languages'] as $language ) { 226 if ( $language['language'] === $_POST['language'] ) { 227 $loading_language = $_POST['language']; 228 break; 229 } 226 230 } 227 231 }
Note: See TracChangeset
for help on using the changeset viewer.