False alarm, something else is going on here. Revert [14780], restore [14695]. see #13317.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-21 15:08:07 +00:00
parent 39af37992a
commit e85693b8a9
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ if ( !function_exists('get_userdata') ) :
function get_userdata( $user_id ) { function get_userdata( $user_id ) {
global $wpdb; global $wpdb;
if ( ! is_numeric( $user_id ) )
return false;
$user_id = absint( $user_id ); $user_id = absint( $user_id );
if ( ! $user_id ) if ( ! $user_id )
return false; return false;