Changeset 10184 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 10/04/2015 01:47:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r10077 r10184 3105 3105 * @uses bp_is_activity_directory() to check if the current page is the activity 3106 3106 * directory. 3107 * @uses bp_is_active() to check if the group component is active.3108 3107 * @uses bp_is_group_activity() to check if on a single group, the current page 3109 3108 * is the group activities. 3110 * @uses bp_is_group_home() to check if the current page is a single group home3111 * page.3112 3109 * 3113 3110 * @return bool True if activity heartbeat is enabled, otherwise false. … … 3120 3117 } 3121 3118 3122 if ( bp_is_activity_directory() ) {3119 if ( bp_is_activity_directory() || bp_is_group_activity() ) { 3123 3120 $retval = true; 3124 3121 } 3125 3122 3126 if ( bp_is_active( 'groups') ) {3127 // If no custom front, then activities are loaded in group's home3128 $has_custom_front = bp_locate_template( array( 'groups/single/front.php' ), false, true );3129 3130 if ( bp_is_group_activity() || ( ! $has_custom_front && bp_is_group_home() ) ) {3131 $retval = true;3132 }3133 }3134 3135 3123 return $retval; 3136 3124 }
Note: See TracChangeset
for help on using the changeset viewer.