Skip to:
Content

BuddyPress.org

Changeset 5905


Ignore:
Timestamp:
03/11/2012 03:58:14 PM (13 years ago)
Author:
boonebgorges
Message:

Use current_user->ID instead of deprecated current_user->id in bp_blogs_validate_blog_signup(), to avoid PHP notices.
Fixes #4070. Props needle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-blogs/bp-blogs-template.php

    r5381 r5905  
    555555        $domain = $blogname . '.' . preg_replace( '|^www\.|', '', $current_site->domain );
    556556
    557     wpmu_create_blog( $domain, $path, $blog_title, $current_user->id, $meta, $wpdb->siteid );
     557    wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid );
    558558    bp_blogs_confirm_blog_signup($domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta);
    559559    return true;
Note: See TracChangeset for help on using the changeset viewer.