CoreFiles by mySites.guru
class-wp-secret-version.php35 lines, 681 bytes, from wordpress-7.2-beta4.zip
Raw History Compare with 7.2-beta3
md5
8d0c9d086b50f4c96b19ec01269c41fc
sha1
cede818c9e769bb9700af12ea2bdaf290d9c0942
sha256
0b9427051c97f977326f000fddb7591a927391c1a83e6d3f5b74ad67d9d1334e
<?php
/**
 * Secrets API: WP_Secret_Version class
 *
 * @package WordPress
 * @subpackage Secrets
 * @since 7.2.0
 */

/**
 * Identifies which slot of a secret's two-slot history to operate on.
 *
 * String constants on a final class rather than a native enum: enums require PHP 8.1,
 * and this class ships in core, whose minimum supported PHP version is 7.4.
 *
 * @since 7.2.0
 */
final class WP_Secret_Version {

	/**
	 * The current value of a secret.
	 *
	 * @since 7.2.0
	 * @var string
	 */
	const CURRENT = 'current';

	/**
	 * The value a secret held immediately before its most recent overwrite.
	 *
	 * @since 7.2.0
	 * @var string
	 */
	const PREVIOUS = 'previous';
}

The same content is in 5 releases, WordPress 7.2-beta1 to 7.2-beta5. See them all, or every version of this file.