WordPress at Your Fingertips
function is not described

SimplePie_Misc::get_build() public WP 1.0

Get the SimplePie build timestamp

Uses the git index if it exists, otherwise uses the modification time of the newest file.

{} It's a method of the class: SimplePie_Misc{}

No Hooks.

Return

null. Nothing.

Usage

$result = SimplePie_Misc::get_build();

Code of SimplePie_Misc::get_build() WP 5.8.2

public static function get_build()
{
	$root = dirname(dirname(__FILE__));
	if (file_exists($root . '/.git/index'))
	{
		return filemtime($root . '/.git/index');
	}
	elseif (file_exists($root . '/SimplePie'))
	{
		$time = 0;
		foreach (glob($root . '/SimplePie/*.php') as $file)
		{
			if (($mtime = filemtime($file)) > $time)
			{
				$time = $mtime;
			}
		}
		return $time;
	}
	elseif (file_exists(dirname(__FILE__) . '/Core.php'))
	{
		return filemtime(dirname(__FILE__) . '/Core.php');
	}

	return filemtime(__FILE__);
}