Changeset 5302 for trunk/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 11/08/2011 01:24:47 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r5301 r5302 85 85 86 86 if ( !$user_id ) 87 $user_id = $bp->loggedin_user->id;87 $user_id = bp_loggedin_user_id(); 88 88 89 89 $name = get_blog_option( $blog_id, 'blogname' ); … … 377 377 378 378 if ( !$user_id ) 379 $user_id = $bp->loggedin_user->id;379 $user_id = bp_loggedin_user_id(); 380 380 381 381 do_action( 'bp_blogs_before_remove_post', $blog_id, $post_id, $user_id ); … … 394 394 bp_blogs_delete_activity( array( 'item_id' => $wpdb->blogid, 'secondary_item_id' => $comment_id, 'type' => 'new_blog_comment' ) ); 395 395 396 do_action( 'bp_blogs_remove_comment', $wpdb->blogid, $comment_id, $bp->loggedin_user->id);396 do_action( 'bp_blogs_remove_comment', $wpdb->blogid, $comment_id, bp_loggedin_user_id() ); 397 397 } 398 398 add_action( 'delete_comment', 'bp_blogs_remove_comment' ); … … 411 411 412 412 if ( !$user_id ) 413 $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : $bp->loggedin_user->id;413 $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id(); 414 414 415 415 if ( !$count = wp_cache_get( 'bp_total_blogs_for_user_' . $user_id, 'bp' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.