Skip to:
Content

BuddyPress.org

Changeset 1694


Ignore:
Timestamp:
08/25/2009 01:28:50 AM (15 years ago)
Author:
apeatling
Message:

Updating group wire activity recording to support wire function changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1687 r1694  
    19271927        return false;
    19281928   
    1929     if ( $wire_post_id = bp_wire_new_post( $group_id, $content, 'groups' ) ) {
     1929    if ( $wire_post = bp_wire_new_post( $group_id, $content, 'groups' ) ) {
    19301930        $activity_content = sprintf( __( '%s wrote on the wire of the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );
    19311931        $activity_content .= '<blockquote>' . bp_create_excerpt( attribute_escape( $content ) ) . '</blockquote>';
     
    19351935            'primary_link' => bp_get_group_permalink( $bp->groups->current_group ),
    19361936            'component_action' => 'new_wire_post',
    1937             'item_id' => $wire_post_id,
     1937            'item_id' => $wire_post->item_id,
    19381938            'secondary_item_id' => $bp->groups->current_group->id
    19391939        ) );
Note: See TracChangeset for help on using the changeset viewer.