[buddypress-trac] [BuddyPress] #2401: Clean up the functionality of links in the activity stream
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon May 24 00:36:53 UTC 2010
#2401: Clean up the functionality of links in the activity stream
-------------------------+--------------------------------------------------
Reporter: hotforwords | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Core | Keywords: activity stream links
-------------------------+--------------------------------------------------
In the activity stream of Buddypress when connected to Wordpress, the
wording is as such:
''
Someusername commented on the blog post '''Blog Post Name''' 4 minutes
ago · '''View''' · '''Delete'''''
The clickable name of the '''Blog Post Name''' should take you to the blog
post, currently it takes you to the comment, which is what the '''View'''
link does, thus creating redundancy.
It's an easy fix:
On line 428 of bp-blogs.php change:
{{{
$activity_action = sprintf( __( '%s commented on the blog post %s',
'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' .
$comment_link . '">' . $comment->post->post_title . '</a>' );
}}}
to
{{{
$activity_action = sprintf( __( '%s commented on the blog post %s',
'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' .
get_permalink( $comment->comment_post_ID ) . '">' .
$comment->post->post_title . '</a>' );
}}}
--
Ticket URL: <http://trac.buddypress.org/ticket/2401>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list