Changeset 2941 for trunk/bp-blogs.php
- Timestamp:
- 04/19/2010 06:13:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r2925 r2941 288 288 bp_blogs_record_activity( array( 289 289 'user_id' => $recorded_blog->user_id, 290 'action' => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '% s created the blog %s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_blog_option( $recorded_blog->blog_id, 'siteurl' ) . '">' . attribute_escape( $name ) . '</a>' ), &$recorded_blog, $name, $description ),290 'action' => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '%1$s created the blog %2$s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_blog_option( $recorded_blog->blog_id, 'siteurl' ) . '">' . attribute_escape( $name ) . '</a>' ), &$recorded_blog, $name, $description ), 291 291 'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', get_blog_option( $recorded_blog->blog_id, 'siteurl' ), $recorded_blog->blog_id ), 292 292 'type' => 'new_blog', … … 323 323 $post_permalink = get_permalink( $post_id ); 324 324 325 $activity_action = sprintf( __( '% s wrote a new blog post: %s', 'buddypress' ), bp_core_get_userlink( (int)$post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );325 $activity_action = sprintf( __( '%1$s wrote a new blog post: %2$s', 'buddypress' ), bp_core_get_userlink( (int)$post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' ); 326 326 $activity_content = $post->post_content; 327 327 … … 370 370 /* Record in activity streams */ 371 371 $comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id; 372 $activity_action = sprintf( __( '% s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' );372 $activity_action = sprintf( __( '%1$s commented on the blog post %2$s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' ); 373 373 $activity_content = $comment->comment_content; 374 374
Note: See TracChangeset
for help on using the changeset viewer.