Make WordPress Core

Changeset 18504 for trunk/wp-login.php


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-login.php

    r18460 r18504  
    587587        if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
    588588            // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
    589             if ( is_multisite() && !get_active_blog_for_user($user->id) && !is_super_admin( $user->id ) )
     589            if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) )
    590590                $redirect_to = user_admin_url();
    591591            elseif ( is_multisite() && !$user->has_cap('read') )
    592                 $redirect_to = get_dashboard_url( $user->id );
     592                $redirect_to = get_dashboard_url( $user->ID );
    593593            elseif ( !$user->has_cap('edit_posts') )
    594594                $redirect_to = admin_url('profile.php');
Note: See TracChangeset for help on using the changeset viewer.