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


git-svn-id: http://core.svn.wordpress.org/trunk@42500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-02-08 10:59:00 +00:00
parent a65ce4e34b
commit a5958a289b
2 changed files with 8 additions and 8 deletions

View File

@ -398,15 +398,15 @@ switch ( $step ) {
<?php
/* translators: %s: wp-config.php */
printf( __( 'You can create the %s file manually and paste the following text into it.' ), '<code>wp-config.php</code>' );
?>
</p>
<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly">
<?php
$config_text = '';
foreach ( $config_file as $line ) {
echo htmlentities( $line, ENT_COMPAT, 'UTF-8' );
$config_text .= htmlentities( $line, ENT_COMPAT, 'UTF-8' );
}
?>
</textarea>
</p>
<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php echo $config_text; ?></textarea>
<p><?php _e( 'After you&#8217;ve done that, click &#8220;Run the installation.&#8221;' ); ?></p>
<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p>
<script>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42671';
$wp_version = '5.0-alpha-42672';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.