Skip to:
Content

BuddyPress.org

Changeset 2393 for trunk/bp-blogs.php


Ignore:
Timestamp:
01/21/2010 12:28:15 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r2389 r2393  
    264264        $content = bp_activity_thumnail_content_images( $content );
    265265
    266     $action = apply_filters( 'bp_blogs_record_activity_action', $action );
    267     $content = apply_filters( 'bp_blogs_record_activity_content', "<blockquote>" . bp_create_excerpt( $content ) . "</blockquote>" );
     266    if ( !empty( $action ) )
     267        $action = apply_filters( 'bp_blogs_record_activity_action', $action );
     268
     269    if ( !empty( $content ) )
     270        $content = apply_filters( 'bp_blogs_record_activity_content', "<blockquote>" . bp_create_excerpt( $content ) . "</blockquote>" );
    268271
    269272    return bp_activity_add( array( 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) );
Note: See TracChangeset for help on using the changeset viewer.