function wpcom_liveblog_load() { WPCOM_Liveblog::load(); }
$log = log($bytes, 1024); $power = (int) $log; $size = pow(1024, $log - $power); return $size . $units[$power]; } /** * Get the maximum upload file size * * @see wp_max_upload_size() * @return string */ private static function max_upload_size() { $u_bytes = self::convert_hr_to_bytes(ini_get('upload_max_filesize')); $p_bytes = self::convert_hr_to_bytes(ini_get('post_max_size')); $bytes = apply_filters('upload_size_limit', min($u_bytes, $p_bytes), $u_bytes, $p_bytes); return $bytes; } private static function is_wp_too_old() { global $wp_version; // if WordPress is loaded in a function the version variables aren't globalized // see: http://core.trac.wordpress.org/ticket/17749#comment:40 if (!isset($wp_version) || !$wp_version) { return false; } return version_compare($wp_version, self::min_wp_version, '<'); } } WPCOM_Liveblog::load(); }