WordPress.org

Make WordPress Core

#21657 closed enhancement (fixed)

When setup can't write to wp-config.php, the code textarea should be read only

Reported by: jblz Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

Description

Users can accidentally overwrite or append erroneous text to the contents and then copy a bad wp-config. Making this field readonly would prevent that and bring the UI in line with the textarea.code elements in wp-admin/network.php.

Attachments (1)

21657.patch (638 bytes) - added by jblz 20 months ago.

Download all attachments as: .zip

Change History (3)

jblz20 months ago

comment:1 nacin20 months ago

  • Milestone changed from Awaiting Review to 3.5

comment:2 nacin19 months ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [21869]:

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

Note: See TracTickets for help on using tickets.