Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#2456 closed enhancement (fixed)

Don't have /wp-admin/options.php screw up your options

Reported by: viper007bond's profile Viper007Bond Owned by: markjaquith's profile markjaquith
Milestone: Priority: low
Severity: normal Version: 2.0.4
Component: Administration Keywords: bg|has-patch bg|needs-testing
Focuses: 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 (1)

options.patch (747 bytes) - added by Viper007Bond 18 years ago.
Handle multi-line option values

Download all attachments as: .zip

Change History (7)

@Viper007Bond
18 years ago

Handle multi-line option values

#1 @Viper007Bond
18 years ago

  • Keywords bg|needs-testing added

#2 @markjaquith
17 years ago

  • Milestone set to 2.1
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned
  • Version changed from 2.0.1 to 2.0.4

Bumping this up... this is an annoying one.

Related: #3185, #2868

#3 @markjaquith
17 years ago

  • Milestone changed from 2.1 to 2.0.5

#4 @markjaquith
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4330]) preserve multi-line options in options.php. Props Viper007Bond. fixes #2456

#5 @markjaquith
17 years ago

(In [4331]) preserve multi-line options in options.php. Props Viper007Bond. fixes #2456

#6 @(none)
17 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.