WordPress.org

Make WordPress Core

Changeset 21869


Ignore:
Timestamp:
09/16/12 18:01:04 (19 months ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r21856 r21869  
    259259<p><?php _e( "Sorry, but I can't write the <code>wp-config.php</code> file." ); ?></p> 
    260260<p><?php _e( 'You can create the <code>wp-config.php</code> manually and paste the following text into it.' ); ?></p> 
    261 <textarea cols="98" rows="15" class="code"><?php 
     261<textarea cols="98" rows="15" class="code" readonly="readonly"><?php 
    262262        foreach( $config_file as $line ) { 
    263263            echo htmlentities($line, ENT_COMPAT, 'UTF-8'); 
Note: See TracChangeset for help on using the changeset viewer.