Skip to:
Content

BuddyPress.org

Changeset 3840


Ignore:
Timestamp:
01/22/2011 04:02:37 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Cast $blog_id as integer instead of string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-functions.php

    r3836 r3840  
    265265add_action( 'wp_set_comment_status', 'bp_blogs_manage_comment', 10, 2 );
    266266
    267 function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = false ) {
     267function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = 0 ) {
    268268    global $wpdb, $current_blog;
    269269
     
    291291add_action( 'user_register',    'bp_blogs_add_user_to_blog'        );
    292292
    293 function bp_blogs_remove_user_from_blog( $user_id, $blog_id = false ) {
     293function bp_blogs_remove_user_from_blog( $user_id, $blog_id = 0 ) {
    294294    global $current_blog;
    295295
     
    330330add_action( 'remove_user_from_blog', 'bp_blogs_remove_blog_for_user', 10, 2 );
    331331
    332 function bp_blogs_remove_post( $post_id, $blog_id = false, $user_id = 0 ) {
     332function bp_blogs_remove_post( $post_id, $blog_id = 0, $user_id = 0 ) {
    333333    global $current_blog, $bp;
    334334
Note: See TracChangeset for help on using the changeset viewer.