Ticket #7374: 7374-2.patch
| File 7374-2.patch, 866 bytes (added by , 9 years ago) |
|---|
-
bp-activity-functions.php
3768 3768 function bp_activity_do_heartbeat() { 3769 3769 $retval = false; 3770 3770 3771 if ( ! bp_is_activity_heartbeat_active() ) { 3772 return $retval; 3771 if ( bp_is_activity_heartbeat_active() ) { 3772 if ( bp_is_activity_directory() || bp_is_group_activity() ) { 3773 $retval = true; 3774 } 3773 3775 } 3774 3776 3775 if ( bp_is_activity_directory() || bp_is_group_activity() ) { 3776 $retval = true; 3777 } 3778 3779 return $retval; 3777 /** 3778 * Filters whether the heartbeat function in the activity stream should be active. 3779 * 3780 * @since 2.8 3781 * 3782 * @param bool $retval Whether or not the heartbeat function should be active. 3783 */ 3784 return apply_filters( 'bp_activity_do_heartbeat', $retval ); 3780 3785 }