diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b33905501..8b4a726b7 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1432,4 +1432,13 @@ function require_wp_db() require_once (ABSPATH . WPINC . '/wp-db.php'); } +/** + * Converts input to an absolute integer + * @param mixed $maybeint data you wish to have convered to an absolute integer + * @return int an absolute integer + */ +function absint($maybeint) { + return abs(intval($maybeint)); +} + ?>