WordPress.org

Make WordPress Core

Changeset 14579


Ignore:
Timestamp:
05/12/2010 06:59:03 PM (8 years ago)
Author:
nacin
Message:

Whitespace and standards in get_userdata. fixes #13317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r14556 r14579  
    104104    global $wpdb;
    105105
    106     $user_id = absint($user_id);
    107     if ( $user_id == 0 )
     106    $user_id = absint( $user_id );
     107    if ( ! $user_id )
    108108        return false;
    109109
    110     $user = wp_cache_get($user_id, 'users');
     110    $user = wp_cache_get( $user_id, 'users' );
    111111
    112112    if ( $user )
    113113        return $user;
    114114
    115     if ( !$user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE ID = %d LIMIT 1", $user_id)) )
     115    if ( ! $user = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->users WHERE ID = %d LIMIT 1", $user_id ) ) )
    116116        return false;
    117117
    118     _fill_user($user);
     118    _fill_user( $user );
    119119
    120120    return $user;
Note: See TracChangeset for help on using the changeset viewer.