Make WordPress Core


Ignore:
Timestamp:
08/03/2012 01:06:05 AM (12 years ago)
Author:
nacin
Message:

Move most instances of new WP_User to get_userdata(). see #21120.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r21364 r21413  
    10721072        return '';
    10731073
    1074     $user = new WP_User( $user_id );
    1075 
    1076     if ( ! $user->exists() )
     1074    $user = get_userdata( $user_id );
     1075
     1076    if ( ! $user )
    10771077        return '';
    10781078
Note: See TracChangeset for help on using the changeset viewer.