[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/secrets/ -> class-wp-secret-version.php (source)

   1  <?php
   2  /**
   3   * Secrets API: WP_Secret_Version class
   4   *
   5   * @package WordPress
   6   * @subpackage Secrets
   7   * @since 7.2.0
   8   */
   9  
  10  /**
  11   * Identifies which slot of a secret's two-slot history to operate on.
  12   *
  13   * String constants on a final class rather than a native enum: enums require PHP 8.1,
  14   * and this class ships in core, whose minimum supported PHP version is 7.4.
  15   *
  16   * @since 7.2.0
  17   */
  18  final class WP_Secret_Version {
  19  
  20      /**
  21       * The current value of a secret.
  22       *
  23       * @since 7.2.0
  24       * @var string
  25       */
  26      const CURRENT = 'current';
  27  
  28      /**
  29       * The value a secret held immediately before its most recent overwrite.
  30       *
  31       * @since 7.2.0
  32       * @var string
  33       */
  34      const PREVIOUS = 'previous';
  35  }


Generated : Wed Oct 14 08:20:33 2026 Cross-referenced by PHPXref