Skip to:

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


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

  • Keywords has-patch has-unit-tests added

Improve the favorites management using the WP Meta API

Trac ticket:

#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

Note: See TracTickets for help on using tickets.