Skip to:
Content

BuddyPress.org

Changeset 11794


Ignore:
Timestamp:
01/05/2018 12:17:35 PM (9 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.

Location:
trunk/src/bp-blogs
Files:
2 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
  • 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.