WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#12573 closed enhancement (fixed)

add delete_user_option() function

Reported by: TobiasBg Owned by: nacin
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

In wp-includes/user.php we have the function get_user_option() and update_user_option() that deal with global or per-blog user options (stored in wp_usermeta).

Unfortunately, there's no delete_user_option() to remove an option from the DB.

The attached patch adds that function.

Attachments (1)

12573.patch (1.1 KB) - added by TobiasBg 10 years ago.
Patch adds missing delete_user_option() function

Download all attachments as: .zip

Change History (3)

@TobiasBg
10 years ago

Patch adds missing delete_user_option() function

#1 @nacin
10 years ago

  • Owner set to nacin
  • Status changed from new to accepted

#2 @nacin
10 years ago

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

(In [13667]) Add delete_user_option(). fixes #12573, props TobiasBg.

Note: See TracTickets for help on using tickets.