[buddypress-trac] [BuddyPress Trac] #7374: Filter "bp_activity_do_heartbeat()"
buddypress-trac
noreply at wordpress.org
Mon Dec 5 15:36:16 UTC 2016
#7374: Filter "bp_activity_do_heartbeat()"
---------------------------+-----------------------------
Reporter: wordpressrene | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version: 2.7.2
Severity: normal | Keywords:
---------------------------+-----------------------------
If you use the activity loop on another page than the activity page of
BuddyPress, the automatic loading of new posts via heartbeat API is
disabled, because the function "bp_activity_do_heartbeat()" returns false.
This seems logic, because it is neither the activity directory nor the
group activity.
If there is a filter in "bp_activity_do_heartbeat()" it would be possible
to use the heartbeat functions in this case. Simply change {{{return
$retval;}}} to {{{return apply_filters( 'bp_activity_do_heartbeat',
$retval );}}} in ''bp-activity/bp-activity-functions.php:3764''
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7374>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list