mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
In WP_User::get_data_by(), don't abs int negative IDs. Instead, return false when an ID less than 1 is passed.
Props nacin, mordauk fixes #23480 git-svn-id: https://develop.svn.wordpress.org/trunk@24316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -535,7 +535,9 @@ class WP_User {
|
||||
// to int 1.
|
||||
if ( ! is_numeric( $value ) )
|
||||
return false;
|
||||
$value = absint( $value );
|
||||
$value = intval( $value );
|
||||
if ( $value < 1 )
|
||||
return false;
|
||||
} else {
|
||||
$value = trim( $value );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user