[buddypress-trac] [BuddyPress Trac] #9021: Enjoy the WordPress meta API to improve the favorites user meta management
buddypress-trac
noreply at wordpress.org
Tue Nov 7 22:41:41 UTC 2023
#9021: Enjoy the WordPress meta API to improve the favorites user meta management
--------------------------------------+---------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 12.0.0
Component: Activity | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests |
--------------------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"13636" 13636]:
{{{
#!CommitTicketReference repository="" revision="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
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9021#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list