Ticket #13317: 13317-negative-values-equal-zero.2.patch
File 13317-negative-values-equal-zero.2.patch, 475 bytes (added by , 15 years ago) |
---|
-
wp-includes/pluggable.php
103 103 function get_userdata( $user_id ) { 104 104 global $wpdb; 105 105 106 if ( ! is_ numeric( $user_id ) )106 if ( ! is_scalar( $user_id ) ) 107 107 return false; 108 108 109 $user_id = absint($user_id );109 $user_id = max( 0, (int) $user_id ); 110 110 if ( ! $user_id ) 111 111 return false; 112 112