Make WordPress Core


Ignore:
Timestamp:
08/04/2011 03:09:27 AM (14 years ago)
Author:
ryan
Message:

Add magic get/set/isset methods to WP_User to avoid data duplication. Standardize on WP_User::ID. Props scribu. see #15458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/my-sites.php

    r17748 r18504  
    1818$action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash';
    1919
    20 $blogs = get_blogs_of_user( $current_user->id );
     20$blogs = get_blogs_of_user( $current_user->ID );
    2121
    2222if ( empty( $blogs ) )
     
    2929    $blog = get_blog_details( (int) $_POST['primary_blog'] );
    3030    if ( $blog && isset( $blog->domain ) ) {
    31         update_user_option( $current_user->id, 'primary_blog', (int) $_POST['primary_blog'], true );
     31        update_user_option( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'], true );
    3232        $updated = true;
    3333    } else {
Note: See TracChangeset for help on using the changeset viewer.