Changeset 13717 for branches/12.0/src/bp-activity/bp-activity-blocks.php
- Timestamp:
- 01/28/2024 06:43:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/12.0/src/bp-activity/bp-activity-blocks.php
r13710 r13717 27 27 $attributes, 28 28 array( 29 'title' => __( 'Latest updates', 'buddypress' ),29 'title' => '', 30 30 'maxActivities' => 5, 31 31 'type' => array( 'activity_update' ), … … 35 35 36 36 $max_activities = (int) $block_args['maxActivities']; 37 38 if ( ! $block_args['postId'] ) { 39 $block_args['postId'] = get_the_ID(); 40 } 41 42 if ( ! $block_args['title'] ) { 43 $block_args['title'] = __( 'Latest updates', 'buddypress' ); 44 } 37 45 38 46 // Should we get a specific member's activities? … … 80 88 ); 81 89 90 add_filter( 'bp_activity_get_types_supporting_generated_content', '__return_empty_array' ); 91 82 92 // Build the activity loop. 83 if ( bp_is_theme_compat_active() && 'nouveau' === bp_get_theme_compat_id() ) {93 if ( function_exists( 'bp_nouveau' ) ) { 84 94 $bp_nouveau = bp_nouveau(); 85 95 … … 151 161 } 152 162 163 remove_filter( 'bp_activity_get_types_supporting_generated_content', '__return_empty_array' ); 164 153 165 // Adds a container to make sure the block is styled even when used into the Columns parent block. 154 166 $widget_content = sprintf( '<div class="bp-latest-activities-block">%s</div>', "\n" . $widget_content . "\n" );
Note: See TracChangeset
for help on using the changeset viewer.