Ticket #4367: 4367.01.patch
File 4367.01.patch, 881 bytes (added by , 12 years ago) |
---|
-
bp-blogs/bp-blogs-functions.php
function bp_blogs_record_post( $post_id, $post, $user_id = 0 ) { 246 246 if ( $is_blog_public || !is_multisite() ) { 247 247 248 248 // Record this in activity streams 249 $post_permalink = get_permalink( $post_id ); 249 $post_permalink = add_query_arg( 250 'p', 251 $post_id, 252 trailingslashit( get_home_url( $blog_id ) ) 253 ); 250 254 251 255 if ( is_multisite() ) 252 256 $activity_action = sprintf( __( '%1$s wrote a new post, %2$s, on the site %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', '<a href="' . get_blog_option( $blog_id, 'home' ) . '">' . get_blog_option( $blog_id, 'blogname' ) . '</a>' );