Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12573 closed enhancement (fixed)

add delete_user_option() function

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


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 14 years ago.
Patch adds missing delete_user_option() function

Download all attachments as: .zip

Change History (3)

14 years ago

Patch adds missing delete_user_option() function

#1 @nacin
14 years ago

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

#2 @nacin
14 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.