Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/11/2011 08:44:35 PM (13 years ago)
Author:
djpaul
Message:

Fix a bunch of all-time pass-by-reference warnings

File:
1 edited

Legend:

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

    r4466 r4486  
    108108    }
    109109
    110     do_action( 'bp_blogs_new_blog', &$recorded_blog, $is_private, $is_recorded );
     110    do_action_ref_array( 'bp_blogs_new_blog', array( &$recorded_blog, $is_private, $is_recorded ) );
    111111}
    112112add_action( 'wpmu_new_blog', 'bp_blogs_record_blog', 10, 2 );
     
    253253        bp_blogs_record_activity( array(
    254254            'user_id'           => $user_id,
    255             'action'            => apply_filters( 'bp_blogs_activity_new_comment_action',       $activity_action,  &$recorded_comment, $comment_link ),
    256             'content'           => apply_filters( 'bp_blogs_activity_new_comment_content',      $activity_content, &$recorded_comment, $comment_link ),
    257             'primary_link'      => apply_filters( 'bp_blogs_activity_new_comment_primary_link', $comment_link,     &$recorded_comment                ),
     255            'action'            => apply_filters_ref_array( 'bp_blogs_activity_new_comment_action',       array( $activity_action,  &$recorded_comment, $comment_link ) ),
     256            'content'           => apply_filters_ref_array( 'bp_blogs_activity_new_comment_content',      array( $activity_content, &$recorded_comment, $comment_link ) ),
     257            'primary_link'      => apply_filters_ref_array( 'bp_blogs_activity_new_comment_primary_link', array( $comment_link,     &$recorded_comment                ) ),
    258258            'type'              => 'new_blog_comment',
    259259            'item_id'           => $blog_id,
Note: See TracChangeset for help on using the changeset viewer.