WordPress.org

WordPress build repository browser

Changeset 42500


Ignore:
Timestamp:
02/08/18 10:59:00 (2 weeks ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Avoid extra line breaks in a textarea in wp-admin/setup-config.php.

See #43252.
Built from https://develop.svn.wordpress.org/trunk@42672

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r42172 r42500  
    399399    /* translators: %s: wp-config.php */ 
    400400    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    } 
    401407?> 
    402408</p> 
    403 <textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"> 
    404 <?php 
    405 foreach ( $config_file as $line ) { 
    406     echo htmlentities( $line, ENT_COMPAT, 'UTF-8' ); 
    407 } 
    408 ?> 
    409 </textarea> 
     409<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php echo $config_text; ?></textarea> 
    410410<p><?php _e( 'After you&#8217;ve done that, click &#8220;Run the installation.&#8221;' ); ?></p> 
    411411<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p> 
  • trunk/wp-includes/version.php

    r42499 r42500  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42671'; 
     7$wp_version = '5.0-alpha-42672'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.