mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
Switch from abs(intval()) to absint(). See #4762.
git-svn-id: https://develop.svn.wordpress.org/trunk@6682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -120,7 +120,7 @@ if ( !function_exists('get_userdata') ) :
|
||||
function get_userdata( $user_id ) {
|
||||
global $wpdb;
|
||||
|
||||
$user_id = abs(intval($user_id));
|
||||
$user_id = absint($user_id);
|
||||
if ( $user_id == 0 )
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user