Upgrade/Install: Avoid extra line breaks in a textarea in wp-admin/setup-config.php
.
See #43252. git-svn-id: https://develop.svn.wordpress.org/trunk@42672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0859c8c968
commit
02d8aa907a
@ -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>' );
|
||||
|
||||
$config_text = '';
|
||||
|
||||
foreach ( $config_file as $line ) {
|
||||
$config_text .= htmlentities( $line, ENT_COMPAT, 'UTF-8' );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly">
|
||||
<?php
|
||||
foreach ( $config_file as $line ) {
|
||||
echo htmlentities( $line, ENT_COMPAT, 'UTF-8' );
|
||||
}
|
||||
?>
|
||||
</textarea>
|
||||
<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php echo $config_text; ?></textarea>
|
||||
<p><?php _e( 'After you’ve done that, click “Run the installation.”' ); ?></p>
|
||||
<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p>
|
||||
<script>
|
||||
|
Loading…
Reference in New Issue
Block a user