From 0961da92441e92e546733ff00a05e006c8aaf98c Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 12 May 2010 18:59:03 +0000 Subject: [PATCH] Whitespace and standards in get_userdata. fixes #13317. git-svn-id: http://svn.automattic.com/wordpress/trunk@14579 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 8c8d688c16..d8a30cd22e 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -103,19 +103,19 @@ if ( !function_exists('get_userdata') ) : function get_userdata( $user_id ) { global $wpdb; - $user_id = absint($user_id); - if ( $user_id == 0 ) + $user_id = absint( $user_id ); + if ( ! $user_id ) return false; - $user = wp_cache_get($user_id, 'users'); + $user = wp_cache_get( $user_id, 'users' ); if ( $user ) return $user; - if ( !$user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE ID = %d LIMIT 1", $user_id)) ) + if ( ! $user = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->users WHERE ID = %d LIMIT 1", $user_id ) ) ) return false; - _fill_user($user); + _fill_user( $user ); return $user; }