Changeset 29705
- Timestamp:
- 09/04/2014 02:38:17 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install.php
r29673 r29705 182 182 } 183 183 184 $langu gage = '';184 $language = ''; 185 185 if ( ! empty( $_REQUEST['language'] ) ) { 186 $langugage = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); 186 $language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); 187 } elseif ( isset( $GLOBALS['wp_local_package'] ) ) { 188 $language = $GLOBALS['wp_local_package']; 187 189 } 188 190 … … 190 192 case 0: // Step 0 191 193 192 if ( wp_can_install_language_pack() && empty( $langu gage ) && ( $languages = wp_get_available_translations() ) ) {194 if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) { 193 195 display_header( 'language-chooser' ); 194 196 echo '<form id="setup" method="post" action="?step=1">'; … … 201 203 202 204 case 1: // Step 1, direct link or from language chooser. 203 if ( ! empty( $langu gage ) ) {204 $loaded_language = wp_download_language_pack( $langu gage );205 if ( ! empty( $language ) ) { 206 $loaded_language = wp_download_language_pack( $language ); 205 207 if ( $loaded_language ) { 206 208 load_default_textdomain( $loaded_language ); … … 212 214 ?> 213 215 <h1><?php _ex( 'Welcome', 'Howdy' ); ?></h1> 214 <p><?php _ _( 'Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.' ); ?></p>216 <p><?php _e( 'Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.' ); ?></p> 215 217 216 218 <h1><?php _e( 'Information needed' ); ?></h1> … … 221 223 break; 222 224 case 2: 223 if ( ! empty( $langu gage ) && load_default_textdomain( $langugage ) ) {224 $loaded_language = $langu gage;225 if ( ! empty( $language ) && load_default_textdomain( $language ) ) { 226 $loaded_language = $language; 225 227 $GLOBALS['wp_locale'] = new WP_Locale(); 226 228 } else { -
trunk/src/wp-admin/setup-config.php
r29673 r29705 91 91 if ( ! empty( $_REQUEST['language'] ) ) { 92 92 $language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); 93 } elseif ( isset( $GLOBALS['wp_local_package'] ) ) { 94 $language = $GLOBALS['wp_local_package']; 93 95 } 96 94 97 switch($step) { 95 98 case -1:
Note: See TracChangeset
for help on using the changeset viewer.