Changeset 8125 for trunk/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 03/13/2014 06:34:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r8111 r8125 183 183 return false; 184 184 185 $url = get_home_url( $blog_id ); 185 186 $name = get_blog_option( $blog_id, 'blogname' ); 186 187 $description = get_blog_option( $blog_id, 'blogdescription' ); … … 195 196 $is_recorded = !empty( $recorded_blog_id ) ? true : false; 196 197 198 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'url', $url ); 197 199 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'name', $name ); 198 200 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'description', $description ); … … 208 210 bp_blogs_record_activity( array( 209 211 'user_id' => $recorded_blog->user_id, 210 'action' => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '%s created the site %s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_home_url( $recorded_blog->blog_id ) . '">' . esc_attr( $name ) . '</a>' ), $recorded_blog, $name, $description ), 211 'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', get_home_url( $recorded_blog->blog_id ), $recorded_blog->blog_id ), 212 'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', $url, $recorded_blog->blog_id ), 212 213 'type' => 'new_blog', 213 214 'item_id' => $recorded_blog->blog_id … … 358 359 bp_blogs_record_activity( array( 359 360 'user_id' => (int) $post->post_author, 360 'action' => apply_filters( 'bp_blogs_activity_new_post_action', $activity_action, $post, $post_permalink ),361 361 'content' => apply_filters( 'bp_blogs_activity_new_post_content', $activity_content, $post, $post_permalink ), 362 362 'primary_link' => apply_filters( 'bp_blogs_activity_new_post_primary_link', $post_permalink, $post_id ), … … 453 453 bp_blogs_record_activity( array( 454 454 'user_id' => $user_id, 455 'action' => apply_filters_ref_array( 'bp_blogs_activity_new_comment_action', array( $activity_action, &$recorded_comment, $comment_link ) ),456 455 'content' => apply_filters_ref_array( 'bp_blogs_activity_new_comment_content', array( $activity_content, &$recorded_comment, $comment_link ) ), 457 456 'primary_link' => apply_filters_ref_array( 'bp_blogs_activity_new_comment_primary_link', array( $comment_link, &$recorded_comment ) ),
Note: See TracChangeset
for help on using the changeset viewer.