If wp-config.php is not writable from setup-config, make the resulting textarea readonly. props jblz, fixes #21657.

git-svn-id: http://core.svn.wordpress.org/trunk@21869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-16 18:01:04 +00:00
parent a269ba85f7
commit 3a98eb10a1
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ switch($step) {
?>
<p><?php _e( "Sorry, but I can't write the <code>wp-config.php</code> file." ); ?></p>
<p><?php _e( 'You can create the <code>wp-config.php</code> manually and paste the following text into it.' ); ?></p>
<textarea cols="98" rows="15" class="code"><?php
<textarea cols="98" rows="15" class="code" readonly="readonly"><?php
foreach( $config_file as $line ) {
echo htmlentities($line, ENT_COMPAT, 'UTF-8');
}