WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#12573 closed enhancement (fixed)

add delete_user_option() function

Reported by: TobiasBg Owned by: nacin
Priority: normal Milestone: 3.0
Component: General Version:
Severity: normal Keywords: has-patch commit
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 3 years ago.
Patch adds missing delete_user_option() function

Download all attachments as: .zip

Change History (3)

TobiasBg3 years ago

Patch adds missing delete_user_option() function

comment:1 nacin3 years ago

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

comment:2 nacin3 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.