Skip to:
Content

BuddyPress.org

Opened 7 months ago

Closed 7 months ago

#9021 closed defect (bug) (fixed)

Enjoy the WordPress meta API to improve the favorites user meta management

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: Activity Keywords: has-patch has-unit-tests
Cc:

Description

Let's use the WP register_meta() function to manage the 'bp_favorite_activities'.

Change History (2)

This ticket was mentioned in PR #189 on buddypress/buddypress by @imath.


7 months ago
#1

  • Keywords has-patch has-unit-tests added

Improve the favorites management using the WP Meta API

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9021

#2 @imath
7 months ago

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

In 13636:

Improve the favorites management using the WP Meta API

  • Introduce bp_activity_register_user_favorites_meta() to register the user meta and define sanitization callback.
  • Introduce bp_activity_sanitize_user_favorites_meta() to do the sanitization job.
  • Improve Ajax callbacks about favoriting/unfavoriting activities in template packs.

Props emaralive, dcavins

Fixes #9021
Closes https://github.com/buddypress/buddypress/pull/189

Note: See TracTickets for help on using tickets.