Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

#9021 closed defect (bug) (fixed)

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

Reported by: imath Owned by: imath
Priority: normal Milestone: 12.0.0
Component: Activity Version:
Severity: normal 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.


3 years 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
3 years ago

  • Owner set to imath
  • Resolution → fixed
  • Status new → 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.