Skip to:
Content

BuddyPress.org

Changeset 8474


Ignore:
Timestamp:
06/04/2014 04:46:36 PM (12 years ago)
Author:
boonebgorges
Message:

Codestyling in bp_blogs_record_activity()

File:
1 edited

Legend:

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

    r8473 r8474  
    270270
    271271        // Bail if activity is not active
    272         if ( ! bp_is_active( 'activity' ) )
     272        if ( ! bp_is_active( 'activity' ) ) {
    273273                return false;
     274        }
    274275
    275276        $defaults = array(
     
    290291
    291292        // Remove large images and replace them with just one image thumbnail
    292         if ( !empty( $content ) )
     293        if ( ! empty( $content ) ) {
    293294                $content = bp_activity_thumbnail_content_images( $content, $primary_link, $r );
    294 
    295         if ( !empty( $action ) )
     295        }
     296
     297        if ( ! empty( $action ) ) {
    296298                $action = apply_filters( 'bp_blogs_record_activity_action', $action );
    297 
    298         if ( !empty( $content ) )
     299        }
     300
     301        if ( ! empty( $content ) ) {
    299302                $content = apply_filters( 'bp_blogs_record_activity_content', bp_create_excerpt( $content ), $content, $r );
     303        }
    300304
    301305        // Check for an existing entry and update if one exists.
Note: See TracChangeset for help on using the changeset viewer.