Changeset 11751
- Timestamp:
- 11/29/2017 05:31:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r11738 r11751 938 938 function bp_activity_add_user_favorite( $activity_id, $user_id = 0 ) { 939 939 940 // Favorite activity stream items are for logged in users only.941 if ( ! is_user_logged_in() ) {942 return false;943 }944 945 940 // Fallback to logged in user if no user_id is passed. 946 941 if ( empty( $user_id ) ) { … … 1011 1006 */ 1012 1007 function bp_activity_remove_user_favorite( $activity_id, $user_id = 0 ) { 1013 1014 // Favorite activity stream items are for logged in users only.1015 if ( ! is_user_logged_in() ) {1016 return false;1017 }1018 1008 1019 1009 // Fallback to logged in user if no user_id is passed.
Note: See TracChangeset
for help on using the changeset viewer.