Ticket #2456 (closed enhancement: fixed)
Don't have /wp-admin/options.php screw up your options
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Administration | Version: | 2.0.4 |
| Severity: | normal | Keywords: | bg|has-patch bg|needs-testing |
| Cc: |
Description
I quickly wanted to manually change one of the options of a plugin I was writing. Rather than using phpMyAdmin to do it, I lazyily used /wp-admin/options.php to do it. However, when I saved, it made all of the options that had multiple lines into just the first line.
So, with this patch, options.php checks to see if the option value has a line break in it and if it does, it uses a <textarea> rather than an <input>. I think this should fix the problem.
Attachments
Change History
Viper007Bond — 6 years ago
-
attachment
options.patch
added
comment:2
markjaquith — 5 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
- Version changed from 2.0.1 to 2.0.4
- Milestone set to 2.1
comment:4
markjaquith — 5 years ago
- Status changed from assigned to closed
- Resolution set to fixed
comment:5
markjaquith — 5 years ago
Note: See
TracTickets for help on using
tickets.

Handle multi-line option values