Skip to:

Opened 11 years ago

Closed 11 years ago

#1474 closed defect (bug) (fixed)

When called without the $meta_value parameter, bb_delete_usermeta() does not work.

Reported by: mdawaffe Owned by:
Milestone: 1.1 Priority: normal
Severity: blocker Version: 1.1-alpha
Component: Back-end Keywords:


bb_delete_usermeta() can either be called with an explicit meta_value (to delete the key with that value) or without (to delete the key no matter the value). When called without an explicit meta_value, the function fails.

bb_delete_usermeta()'s $meta_value parameter defaults to the empty string, but BackPress' WP_User::delete_meta() checks is_null( $meta_value ).

Attached changes the default to null.

Attachments (1)

1474.diff (608 bytes) - added by mdawaffe 11 years ago.

Download all attachments as: .zip

Change History (2)

11 years ago

#1 @johnjamesjacoby
11 years ago

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

Fixed in r2910.

Note: See TracTickets for help on using tickets.