Skip to:
Content

BuddyPress.org

Changeset 5904


Ignore:
Timestamp:
03/11/2012 03:57:52 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
  • trunk/bp-blogs/bp-blogs-template.php

    r5891 r5904  
    559559        $domain = $blogname . '.' . preg_replace( '|^www\.|', '', $current_site->domain );
    560560
    561     wpmu_create_blog( $domain, $path, $blog_title, $current_user->id, $meta, $wpdb->siteid );
     561    wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid );
    562562    bp_blogs_confirm_blog_signup($domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta);
    563563    return true;
Note: See TracChangeset for help on using the changeset viewer.