WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#10926 closed enhancement (fixed)

Add filter hook to delete_option in wp-includes/functions.php

Reported by: bboudreau Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: General Keywords: has-patch
Focuses: Cc:

Description

Hooks already exist in update_option and get_option functions.
It would be consistent (and useful) to add one in the delete option too.

Patch attached.

Attachments (1)

delete_option.patch.txt (475 bytes) - added by bboudreau 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 @bboudreau6 years ago

  • Cc bboudreau added
  • Summary changed from Add filter hook to delete_option in wp-incldues/functions.php to Add filter hook to delete_option in wp-includes/functions.php

comment:2 @scribu6 years ago

  • Keywords has-patch added
  • Milestone changed from Unassigned to 2.9
  • Type changed from feature request to enhancement
  • Version set to 2.9

comment:3 @Denis-de-Bernardy6 years ago

if this gets committed, we need the same for transients, etc.

comment:4 @ryan6 years ago

  • Milestone changed from 2.9 to 3.0

comment:5 @Denis-de-Bernardy5 years ago

  • Milestone changed from 3.0 to 2.9
  • Resolution set to fixed
  • Status changed from new to closed

delete_option was taken care of in WP 2.9. transients are over in #10788.

Note: See TracTickets for help on using tickets.