Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

#2987 closed enhancement (fixed)

cleanup in notification settings

Reported by: wpmuguru Owned by: DJPaul
Priority: normal Milestone: 1.5
Component: Core Version:
Severity: Keywords:
Cc:

Description

The notification settings repeat calls to get_user_meta for the same data. Also, there is a WP core function for checking radio buttons and checkboxes.

BP should use the core function & should not repeat data retrieval (even if from cache) within the same function. The core function also makes the code cleaner and easier to follow.

Attachments (1)

2987.diff (14.3 KB ) - added by wpmuguru 16 years ago.

Download all attachments as: .zip

Change History (4)

@wpmuguru
16 years ago

#1 @wpmuguru
16 years ago

That patch is for trunk.

#2 @DJPaul
16 years ago

  • Milestone Awaiting Review1.3
  • Owner set to DJPaul
  • Status newaccepted

Awesome, didn't know about that function. We'll have to update xprofile admin screen probably, too, at some point. Thanks for the patch :)

#3 @djpaul
16 years ago

  • Resolutionfixed
  • Status acceptedclosed

(In [3633]) Cleanup code in notification settings, and don't reinvent the wheel. Fixes #2987, props wpmuguru

Note: See TracTickets for help on using tickets.