WordPress.org

Make WordPress Core

Ticket #16974: 16974.patch

File 16974.patch, 373 bytes (added by sc0ttkclark, 3 years ago)
  • functions.php

     
    32503250 * @return int An nonnegative integer 
    32513251 */ 
    32523252function absint( $maybeint ) { 
     3253    if ( is_numeric( trim( $maybeint) ) ) { 
     3254        return 0; 
     3255    } 
    32533256        return abs( intval( $maybeint ) ); 
    32543257} 
    32553258