Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2012 06:03:00 PM (12 years ago)
Author:
r-a-y
Message:

EOF:

  • Fall in line with WordPress 3.4 coding practices by removing all EOF closing PHP tags.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r6259 r6342  
    533533    } else {
    534534        $metas = $wpdb->get_results( $wpdb->prepare( "SELECT meta_key, meta_value FROM {$bp->activity->table_name_meta} WHERE activity_id = %d", $activity_id ) );
    535                
     535
    536536        if ( !empty( $metas ) ) {
    537537            $metas = array_map( 'maybe_unserialize', (array) $metas );
    538            
     538
    539539            foreach( $metas as $mkey => $mvalue ) {
    540540                wp_cache_set( 'bp_activity_meta_' . $activity_id . '_' . $mkey, $mvalue, 'bp' );
     
    542542        }
    543543    }
    544    
     544
    545545    // No result so return false
    546546    if ( empty( $metas ) )
     
    731731            $activity_obj->$k = $v;
    732732
    733         // Mark as not spam 
     733        // Mark as not spam
    734734        bp_activity_mark_as_ham( $activity_obj );
    735735
     
    10281028    ) );
    10291029
    1030     $activity_content = apply_filters( 'bp_activity_latest_update_content', $content ); 
     1030    $activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
    10311031
    10321032    // Add this update to the "latest update" usermeta so it can be fetched anywhere.
     
    14331433    preg_match_all( '/<img[^>]*>/Ui', $content, $matches );
    14341434    $content = preg_replace('|(\[caption(.*?)\])?<img[^>]*>(\[/caption\])?|', '', $content );
    1435    
     1435
    14361436    if ( !empty( $matches ) && !empty( $matches[0] ) ) {
    14371437        // Get the SRC value
     
    15501550
    15511551    do_action( 'bp_activity_mark_as_ham', $activity, $source );
    1552 } 
     1552}
    15531553
    15541554
     
    16671667    bp_activity_update_meta( $id, $cachekey, $cache );
    16681668}
    1669 
    1670 ?>
Note: See TracChangeset for help on using the changeset viewer.