Changeset 2698 for trunk/bp-blogs.php
- Timestamp:
- 02/12/2010 01:27:20 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-blogs.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r2696 r2698 9 9 require ( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-classes.php' ); 10 10 require ( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-templatetags.php' ); 11 require ( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-widgets.php' ); 11 12 /* Include the sitewide blog posts widget if this is a multisite installation */ 13 if ( bp_core_is_multisite() ) 14 require ( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-widgets.php' ); 12 15 13 16 function bp_blogs_install() { … … 437 440 if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) { 438 441 /* Now re-record the post in the activity streams */ 439 $post_permalink = bp_post_get_permalink( $post, $blog_id );442 $post_permalink = get_permalink( $post_id ); 440 443 441 444 $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>' ); … … 495 498 if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) { 496 499 /* Record in activity streams */ 497 $comment_link = bp_post_get_permalink( $comment->post, $wpdb->blogid) . '#comment-' . $comment_id;500 $comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id; 498 501 $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>' ); 499 502 $activity_content = $comment->comment_content;
Note: See TracChangeset
for help on using the changeset viewer.