Changeset 43571 for trunk/src/wp-admin/setup-config.php
- Timestamp:
- 08/17/2018 01:50:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/setup-config.php
r43205 r43571 103 103 104 104 header( 'Content-Type: text/html; charset=utf-8' ); 105 ?>105 ?> 106 106 <!DOCTYPE html> 107 107 <html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>> … … 115 115 <body class="<?php echo implode( ' ', $body_classes ); ?>"> 116 116 <p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p> 117 <?php117 <?php 118 118 } // end function setup_config_display_header(); 119 119 … … 155 155 $step_1 .= '&language=' . $loaded_language; 156 156 } 157 ?>157 ?> 158 158 <h1 class="screen-reader-text"><?php _e( 'Before getting started' ); ?></h1> 159 159 <p><?php _e( 'Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.' ); ?></p> … … 166 166 </ol> 167 167 <p> 168 <?php169 /* translators: %s: wp-config.php */170 printf(171 __( 'We’re going to use this information to create a %s file.' ),172 '<code>wp-config.php</code>'173 );174 ?>168 <?php 169 /* translators: %s: wp-config.php */ 170 printf( 171 __( 'We’re going to use this information to create a %s file.' ), 172 '<code>wp-config.php</code>' 173 ); 174 ?> 175 175 <strong> 176 <?php176 <?php 177 177 /* translators: 1: wp-config-sample.php, 2: wp-config.php */ 178 178 printf( … … 181 181 '<code>wp-config.php</code>' 182 182 ); 183 ?>183 ?> 184 184 </strong> 185 <?php186 /* translators: %s: Codex URL */187 printf(188 __( 'Need more help? <a href="%s">We got it</a>.' ),189 __( 'https://codex.wordpress.org/Editing_wp-config.php' )190 );191 ?>185 <?php 186 /* translators: %s: Codex URL */ 187 printf( 188 __( 'Need more help? <a href="%s">We got it</a>.' ), 189 __( 'https://codex.wordpress.org/Editing_wp-config.php' ) 190 ); 191 ?> 192 192 </p> 193 193 <p><?php _e( 'In all likelihood, these items were supplied to you by your Web Host. If you don’t have this information, then you will need to contact them before you can continue. If you’re all ready…' ); ?></p> 194 194 195 195 <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let’s go!' ); ?></a></p> 196 <?php196 <?php 197 197 break; 198 198 … … 202 202 203 203 setup_config_display_header(); 204 ?>204 ?> 205 205 <h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1> 206 206 <form method="post" action="setup-config.php?step=2"> … … 238 238 </tr> 239 239 </table> 240 <?php241 if ( isset( $_GET['noapi'] ) ) {242 ?>240 <?php 241 if ( isset( $_GET['noapi'] ) ) { 242 ?> 243 243 <input name="noapi" type="hidden" value="1" /><?php } ?> 244 244 <input type="hidden" name="language" value="<?php echo esc_attr( $language ); ?>" /> 245 245 <p class="step"><input name="submit" type="submit" value="<?php echo htmlspecialchars( __( 'Submit' ), ENT_QUOTES ); ?>" class="button button-large" /></p> 246 246 </form> 247 <?php247 <?php 248 248 break; 249 249 … … 388 388 if ( ! is_writable( ABSPATH ) ) : 389 389 setup_config_display_header(); 390 ?>390 ?> 391 391 <p> 392 <?php393 /* translators: %s: wp-config.php */394 printf( __( 'Sorry, but I can’t write the %s file.' ), '<code>wp-config.php</code>' );395 ?>392 <?php 393 /* translators: %s: wp-config.php */ 394 printf( __( 'Sorry, but I can’t write the %s file.' ), '<code>wp-config.php</code>' ); 395 ?> 396 396 </p> 397 397 <p> 398 <?php399 /* translators: %s: wp-config.php */400 printf( __( 'You can create the %s file manually and paste the following text into it.' ), '<code>wp-config.php</code>' );401 402 $config_text = '';403 404 foreach ( $config_file as $line ) {405 $config_text .= htmlentities( $line, ENT_COMPAT, 'UTF-8' );406 }407 ?>398 <?php 399 /* translators: %s: wp-config.php */ 400 printf( __( 'You can create the %s file manually and paste the following text into it.' ), '<code>wp-config.php</code>' ); 401 402 $config_text = ''; 403 404 foreach ( $config_file as $line ) { 405 $config_text .= htmlentities( $line, ENT_COMPAT, 'UTF-8' ); 406 } 407 ?> 408 408 </p> 409 409 <textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php echo $config_text; ?></textarea> … … 419 419 })(); 420 420 </script> 421 <?php421 <?php 422 422 else : 423 423 /* … … 438 438 chmod( $path_to_wp_config, 0666 ); 439 439 setup_config_display_header(); 440 ?>440 ?> 441 441 <h1 class="screen-reader-text"><?php _e( 'Successful database connection' ); ?></h1> 442 442 <p><?php _e( 'All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…' ); ?></p> 443 443 444 444 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p> 445 <?php445 <?php 446 446 endif; 447 447 break;
Note: See TracChangeset
for help on using the changeset viewer.