mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Do not touch absint()
. Reverts [28855].
Built from https://develop.svn.wordpress.org/trunk@28858 git-svn-id: http://core.svn.wordpress.org/trunk@28661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff8e9774ae
commit
a21d9cdacf
@ -3000,15 +3000,10 @@ function dead_db() {
|
|||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param mixed $maybeint Data you wish to have converted to a nonnegative integer
|
* @param mixed $maybeint Data you wish to have converted to a nonnegative integer
|
||||||
* @param bool $limit Whether to only return up to PHP_INT_MAX.
|
|
||||||
* @return int An nonnegative integer
|
* @return int An nonnegative integer
|
||||||
*/
|
*/
|
||||||
function absint( $maybeint, $limit = false ) {
|
function absint( $maybeint ) {
|
||||||
$int = abs( intval( $maybeint ) );
|
return abs( intval( $maybeint ) );
|
||||||
if ( $limit && $int > PHP_INT_MAX ) {
|
|
||||||
$int = PHP_INT_MAX;
|
|
||||||
}
|
|
||||||
return $int;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user