[buddypress-trac] [BuddyPress Trac] #7623: Check for logged-in user on bp_activity_add_user_favorite
buddypress-trac
noreply at wordpress.org
Thu Nov 9 12:09:50 UTC 2017
#7623: Check for logged-in user on bp_activity_add_user_favorite
--------------------------+-----------------------------
Reporter: espellcaste | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version: 2.9.0
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
On wp-cli-buddypress, regardless if you add a user_id,
`bp_activity_add_user_favorite( $activity_id, $user_id = 0 )` always
returns false because it checks for `is_user_logged_in()`.
I'd like to suggest a change in the logic so that when I a user_id is
provided, this logged_in checked is not called.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7623>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list