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

git-svn-id: https://develop.svn.wordpress.org/trunk@21869 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-16 18:01:04 +00:00
parent e33241bef0
commit 29d8f1bad7

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');
}