Ticket #2456 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: Viper007Bond Assigned to: markjaquith
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

options.patch (0.7 kB) - added by Viper007Bond on 02/16/06 01:29:50.
Handle multi-line option values

Change History

02/16/06 01:29:50 changed by Viper007Bond

  • attachment options.patch added.

Handle multi-line option values

04/12/06 05:37:54 changed by Viper007Bond

  • keywords changed from bg|has-patch to bg|has-patch bg|needs-testing.

10/02/06 19:24:29 changed by markjaquith

  • 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.

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

Related: #3185, #2868

10/04/06 11:25:45 changed by markjaquith

  • milestone changed from 2.1 to 2.0.5.

10/04/06 11:28:41 changed by markjaquith

  • status changed from assigned to closed.
  • resolution set to fixed.

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

10/04/06 11:28:55 changed by markjaquith

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

11/30/06 19:41:51 changed by

  • milestone deleted.

Milestone 2.0.5 deleted