WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#2332 closed enhancement (fixed)

New hook: update_option_{$option}

Reported by: skeltoac Owned by: ryan
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: bg|has-patch bg|commit
Focuses: Cc:

Description

Allows plugins to react when any particular option is updated via options.php. More reliable than checking globals.

Attachments (3)

options.php.diff (320 bytes) - added by skeltoac 16 years ago.
update_option-action.diff (652 bytes) - added by skeltoac 16 years ago.
update_option.diff (574 bytes) - added by skeltoac 16 years ago.
Use double quotes.

Download all attachments as: .zip

Change History (11)

#1 @skeltoac
16 years ago

  • Keywords bg|2nd-opinion bg|dev-feedback added

Maybe it would be better in the actual update_option function. What do you think?

#2 @skeltoac
16 years ago

  • Milestone changed from 2.0.1 to 2.1

#3 @davidhouse
16 years ago

update_option() seems the more logical place.

#4 @ryan
16 years ago

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

(In [3485]) update_option_* actions. fixes #2332

#5 @ryan
16 years ago

  • Milestone changed from 2.1 to 2.0.1

#6 @skeltoac
16 years ago

  • Keywords bg|commit added; bg|2nd-opinion bg|dev-feedback removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Wrong quotes. My bad.

@skeltoac
16 years ago

Use double quotes.

#7 @ryan
16 years ago

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

(In [3487]) Use double quotes. fixes #2332

#8 @(none)
15 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.