Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/05/2018 12:17:35 PM (7 years ago)
Author:
djpaul
Message:

Blogs: track Pages (post type) and comments in the activity stream.

Tracking Pages' comments in the Activity Stream used to be the default behaviour until a regression first introduced in BP 1.6(!).
This change now tracks Pages in the stream by default, and Page comments if a specific Page is set to allow comments.

Fixes #4784

Props ketuchetan for the initial patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/classes/class-bp-blogs-component.php

    r11360 r11794  
    106106             * @param array $value Array of post types to track.
    107107             */
    108             $post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) );
     108            $post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'page', 'post' ) );
    109109
    110110            foreach ( $post_types as $post_type ) {
Note: See TracChangeset for help on using the changeset viewer.