Skip to:
Content

BuddyPress.org

Changeset 6240


Ignore:
Timestamp:
08/07/2012 06:10:18 PM (12 years ago)
Author:
djpaul
Message:

When group forum topics are modified, update action text on the topic's activity stream entry.

  • In activity stream it states "[user] started the forum topic [title

of topic] in the group… [time forum post was edited]" which is
incorrect as the forum topic was not created at the time it was edited.

  • Fixes #4350, props r-a-y
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-forums.php

    r6093 r6240  
    204204        }
    205205
    206         $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( groups_get_current_group() ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( groups_get_current_group() ) . '">' . esc_attr( bp_get_current_group_name() ) . '</a>' );
     206        $activity_action = sprintf( __( '%1$s edited the forum topic %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( groups_get_current_group() ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( groups_get_current_group() ) . '">' . esc_attr( bp_get_current_group_name() ) . '</a>' );
    207207        $activity_content = bp_create_excerpt( $topic_text );
    208208
Note: See TracChangeset for help on using the changeset viewer.