Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2294 closed defect (bug) (fixed)

[patch] Update *_usermeta references to the new WP 3.0 *_user_meta

Reported by: cnorris23's profile cnorris23 Owned by: apeatling's profile apeatling
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Core Keywords: has-patch needs-testing
Cc:

Description

WP 3.0 deprecates all *_usermeta functions in favor of the new *_user_meta functions. It's a pretty straight forward change for the update_user_meta and delete_user_meta functions. The new default behavior for the get_user_meta function is to add everything to an array. There is a $single parameter that's been added to the function to allow get_user_meta to behave like get_usermeta, as far as data presentation goes. I've done my best to go through and add 'true' for the $single parameter, so that nothing operates out of the ordinary. However, something may have been missed, so this will need some testing. I'll also do my best to keep up with any changes to trunk that may require this patch to be updated.

Attachments (2)

2294.001.diff (44.1 KB) - added by cnorris23 14 years ago.
first pass
2294.002.diff (43.9 KB) - added by cnorris23 14 years ago.

Download all attachments as: .zip

Change History (7)

@cnorris23
14 years ago

first pass

#1 @apeatling
14 years ago

Thanks, this is a valuable patch.

#2 @DJPaul
14 years ago

  • Owner changed from cnorris23 to apeatling
  • Status changed from new to assigned

#3 @cnorris23
14 years ago

Patch refresh.

@cnorris23
14 years ago

#4 @paulhastings0
14 years ago

  • Summary changed from Update *_usermeta references to the new WP 3.0 *_user_meta to [patch] Update *_usermeta references to the new WP 3.0 *_user_meta

#5 @djpaul
14 years ago

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

(In [3311]) Don't use deprecated delete_usermeta(). Fixes #2294.

Note: See TracTickets for help on using tickets.