src/class-wp-register.php
protected static function is_modified_hash( $url, $path ) {

		if ( self::is_external_url( $url ) ) {
			if ( sha1_file( $url ) !== sha1_file( $path ) ) {
				self::$changes = true;
				return self::$changes;
			}
		}

		return false;
	}
protected static function is_modified_hash( $url, $path ) {

		if ( self::is_external_url( $url ) ) {
			if ( sha1_file( $url ) !== sha1_file( $path ) ) {
				self::$changes = true;
				return self::$changes;
			}
		}

		return false;
	}
Check if it matches the file hash.

@since 1.0.4

@param string $url  → external url.
@param string $path → internal file path.

@return boolean