Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/05/2018 12:17:35 PM (6 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/bp-blogs-activity.php

    r11788 r11794  
    6565     * @param array $value Array of post types to track.
    6666     */
    67     $post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) );
     67    $post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'page', 'post' ) );
    6868    $post_types_array = array_flip( $post_types );
    6969
     
    9696         * @param array $value Array of post types to track.
    9797         */
    98         $comment_post_types = apply_filters( 'bp_blogs_record_comment_post_types', array( 'post' ) );
     98        $comment_post_types = apply_filters( 'bp_blogs_record_comment_post_types', array( 'page', 'post' ) );
    9999        $comment_post_types_array = array_flip( $comment_post_types );
    100100
Note: See TracChangeset for help on using the changeset viewer.