oont-contents/plugins/jetpack/jetpack_vendor/automattic/jetpack-backup/src/class-package-version.php
2025-02-10 13:57:45 +01:00

35 lines
939 B
PHP

<?php
/**
* The Package_Version class.
*
* @package automattic/jetpack-backup
*/
namespace Automattic\Jetpack\Backup;
/**
* The Package_Version class.
*
* Does *not* use namespaced versioning ("VXXXX") because send_package_version_to_tracker() is used as a
* "jetpack_package_versions" filter, and said filter gets run during a plugin upgrade, so it always expects to
* find the "Package_Version" class with the same namespace, name, and interface.
*/
class Package_Version {
const PACKAGE_VERSION = '4.0.8';
const PACKAGE_SLUG = 'backup';
/**
* Adds the package slug and version to the package version tracker's data.
*
* @param array $package_versions The package version array.
*
* @return array The package version array.
*/
public static function send_package_version_to_tracker( $package_versions ) {
$package_versions[ self::PACKAGE_SLUG ] = self::PACKAGE_VERSION;
return $package_versions;
}
}