3669* @since 6.0.03670* @since 7.1.0 The return value is now always zero or greater. Numeric values are cast to integers.3671*3672* @param int$size The result of PHP filesize on the file.3673* @param string$path Path to the file.3674*/3675$size=apply_filters('wp_filesize',$size,$path);3676if(is_numeric($size)){3677$size=(int)$size;3678}else{3679$size=0;3680}3681returnmax(0,$size);
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.