3650* @since 6.0.03651* @since 7.1.0 Negative values are now ignored, being treated the same asnull. Numeric values are cast to integers.3652*3653* @param null|int$size The unfiltered value. Returning a non-negative number from the callback bypasses the filesize call.3654* @param string$path Path to the file.3655*/3656$size=apply_filters('pre_wp_filesize',null,$path);3657if(is_numeric($size)){3658$size=(int)$size;3659}3660if(is_int($size)&&$size>=0){3661return$size;3662}
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.