Changeset 2274 for trunk/bp-blogs.php
- Timestamp:
- 01/06/2010 09:24:41 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-blogs.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r2252 r2274 75 75 global $wpdb, $bp, $userdata; 76 76 77 if ( is_site_admin() && bp_core_is_multi blog_install() ) {77 if ( is_site_admin() && bp_core_is_multisite() ) { 78 78 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 79 79 if ( get_site_option('bp-blogs-db-version') < BP_BLOGS_DB_VERSION ) … … 124 124 /* Blog/post/comment menus should not appear on single WordPress setups. Although comments 125 125 and posts made by users will still show on their activity stream .*/ 126 if ( !bp_core_is_multi blog_install() )126 if ( !bp_core_is_multisite() ) 127 127 return false; 128 128 … … 158 158 global $bp; 159 159 160 if ( bp_core_is_multi blog_install() && $bp->current_component == $bp->blogs->slug && empty( $bp->current_action ) ) {160 if ( bp_core_is_multisite() && $bp->current_component == $bp->blogs->slug && empty( $bp->current_action ) ) { 161 161 $bp->is_directory = true; 162 162 … … 179 179 global $bp; 180 180 181 if ( !bp_core_is_multi blog_install() )181 if ( !bp_core_is_multisite() ) 182 182 return false; 183 183 … … 199 199 global $bp; 200 200 201 if ( !bp_core_is_multi blog_install() || $bp->current_component != $bp->blogs->slug || 'create' != $bp->current_action )201 if ( !bp_core_is_multisite() || $bp->current_component != $bp->blogs->slug || 'create' != $bp->current_action ) 202 202 return false; 203 203 … … 362 362 363 363 /* If we're on a multiblog install, record this post */ 364 if ( bp_core_is_multi blog_install() ) {364 if ( bp_core_is_multisite() ) { 365 365 $recorded_post = new BP_Blogs_Post; 366 366 $recorded_post->user_id = $user_id; … … 374 374 } 375 375 376 if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multi blog_install() ) {376 if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) { 377 377 /* Record this in activity streams */ 378 378 $post_permalink = bp_post_get_permalink( $post, $blog_id ); … … 411 411 } 412 412 413 if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multi blog_install() ) {413 if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) { 414 414 /* Now re-record the post in the activity streams */ 415 415 $post_permalink = bp_post_get_permalink( $post, $blog_id ); … … 455 455 456 456 /* If we're on a multiblog install, record this post */ 457 if ( bp_core_is_multi blog_install() ) {457 if ( bp_core_is_multisite() ) { 458 458 $recorded_comment = new BP_Blogs_Comment; 459 459 $recorded_comment->user_id = $user_id; … … 468 468 } 469 469 470 if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multi blog_install() ) {470 if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) { 471 471 /* Record in activity streams */ 472 472 $comment_link = bp_post_get_permalink( $comment->post, $wpdb->blogid ) . '#comment-' . $comment_id; … … 502 502 bp_blogs_delete_activity( array( 'item_id' => $comment_id, 'secondary_item_id' => $recorded_comment->blog_id, 'component_name' => $bp->blogs->slug, 'component_action' => 'new_blog_comment' ) ); 503 503 504 if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multi blog_install() ) {504 if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) { 505 505 /* Record in activity streams */ 506 506 $comment_link = bp_post_get_permalink( $comment->post, $recorded_comment->blog_id );
Note: See TracChangeset
for help on using the changeset viewer.