Skip to:
Content

BuddyPress.org

Changeset 9648


Ignore:
Timestamp:
03/26/2015 08:08:02 PM (9 years ago)
Author:
djpaul
Message:

Activity: fix warning when commenting on post type activity when "Allow activity stream commenting on blog and forum posts" is enabled.

This was introduced in r9621 when the blog post excerpts were improved by integrating the media extractor.

See #6177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-filters.php

    r9621 r9648  
    411411     * @since BuddyPress (2.3.0)
    412412     */
    413     $maybe_truncate_text = apply_filters( 'bp_activity_maybe_truncate_entry',
    414         ! in_array( $activities_template->activity->type, array( 'new_blog_post', ), true )
     413    $maybe_truncate_text = apply_filters(
     414        'bp_activity_maybe_truncate_entry',
     415        isset( $activities_template->activity->type ) && ! in_array( $activities_template->activity->type, array( 'new_blog_post', ), true )
    415416    );
    416417
Note: See TracChangeset for help on using the changeset viewer.