Skip to:
Content

bbPress.org

Opened 10 years ago

Closed 10 years ago

#1474 closed defect (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:
Cc:

Description

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 10 years ago.

Download all attachments as: .zip

Change History (2)

@mdawaffe
10 years ago

#1 @johnjamesjacoby
10 years ago

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

Fixed in r2910.

Note: See TracTickets for help on using tickets.