From 9bea74d9d4dacbb5591d9272adb33e64826b0427 Mon Sep 17 00:00:00 2001 From: Pierre Lannoy Date: Tue, 7 May 2024 16:13:05 +0200 Subject: [PATCH] Ready to release 2.14.0 on wp.org --- CHANGELOG.md | 5 + includes/libraries/class-libraries.php | 2 +- includes/libraries/decalog-sdk/Engine.php | 28 +- .../libraries/decalog-sdk/EventsLogger.php | 284 +++++++++--------- .../libraries/decalog-sdk/MetricsLogger.php | 2 +- .../libraries/decalog-sdk/TracesLogger.php | 2 +- init.php | 2 +- readme.txt | 2 +- sessions.php | 2 +- 9 files changed, 178 insertions(+), 151 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 504b9a9..a09ce76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to **Sessions** are documented in this *changelog*. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **Sessions** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.14.0] - 2024-05-07 + +### Changed +- The plugin now adapts its requirements to the PSR-3 loaded version. + ## [2.13.3] - 2024-05-04 ### Fixed diff --git a/includes/libraries/class-libraries.php b/includes/libraries/class-libraries.php index 055ccc6..c5f7883 100644 --- a/includes/libraries/class-libraries.php +++ b/includes/libraries/class-libraries.php @@ -114,7 +114,7 @@ public static function init() { 'name' => 'DecaLog SDK', 'prefix' => 'DecaLog', 'base' => POSE_VENDOR_DIR . 'decalog-sdk/', - 'version' => '4.1.0', + 'version' => '4.2.0', 'author' => 'Pierre Lannoy', 'url' => 'https://github.com/Pierre-Lannoy/wp-decalog-sdk', 'license' => 'mit', diff --git a/includes/libraries/decalog-sdk/Engine.php b/includes/libraries/decalog-sdk/Engine.php index ead857f..cafbec4 100644 --- a/includes/libraries/decalog-sdk/Engine.php +++ b/includes/libraries/decalog-sdk/Engine.php @@ -26,7 +26,7 @@ class Engine { * @since 1.0.0 * @var string $version Maintains the engine version. */ - private static $version = '4.1.0'; + private static $version = '4.2.0'; /** * The logger instances and parameters. @@ -39,7 +39,7 @@ class Engine { /** * Registers a new logger. * - * @param string $class The class identifier, must be a value in ['plugin', 'theme']. + * @param string $class The class identifier, must be a value in ['plugin', 'theme', 'library']. * @param string $slug The slug identifier. * @param string $name The name of the component that will trigger events. * @param string $version The version of the component that will trigger events. @@ -82,6 +82,28 @@ public static function getSdkVersion() { return self::$version; } + /** + * Get the loaded version of PSR-3. + * + * @return int The PSR-3 main version. + * @since 4.2.0 + */ + public static function getPsrVersion() { + if ( class_exists( '\Psr\Log\NullLogger') ) { + $reflection = new \ReflectionMethod(\Psr\Log\NullLogger::class, 'log'); + foreach ( $reflection->getParameters() as $param ) { + if ( 'message' === $param->getName() ) { + if ( str_contains($param->getType() ?? '', '|') ) { + return 3; + } + } + } + } else { + return 0; + } + return 1; + } + /** * Get the version of DecaLog. * @@ -106,7 +128,7 @@ public static function getVersionString() { if ( ! defined( 'DECALOG_PRODUCT_NAME' ) ) { define( 'DECALOG_PRODUCT_NAME', 'DecaLog' ); } - return DECALOG_PRODUCT_NAME . ' ' . self::getDecalogVersion() . ' (SDK ' . self::getSdkVersion() . ')'; + return DECALOG_PRODUCT_NAME . ' ' . self::getDecalogVersion() . ' (SDK ' . self::getSdkVersion() . ' / PSR-3^' . self::getPsrVersion() . ')'; } return ''; } diff --git a/includes/libraries/decalog-sdk/EventsLogger.php b/includes/libraries/decalog-sdk/EventsLogger.php index 8089d8f..bbe90d7 100644 --- a/includes/libraries/decalog-sdk/EventsLogger.php +++ b/includes/libraries/decalog-sdk/EventsLogger.php @@ -9,10 +9,10 @@ namespace DecaLog; -if ( defined( 'DECALOG_VERSION' ) && version_compare(DECALOG_VERSION, '3.11.0', '<') ) { +if ( 3 === \DecaLog\Engine::getPsrVersion() ) { /** - * DecaLog PSR-3 logger class. Failsafe for old PSR-3 versions. + * DecaLog PSR-3 logger class. * * This class defines all code necessary to log events with DecaLog. * If DecaLog is not installed, it will do nothing and will not throw errors. @@ -34,7 +34,7 @@ class EventsLogger implements \Psr\Log\LoggerInterface { /** * Initialize the class and set its properties. * - * @param string $class The class identifier, must be a value in ['plugin', 'theme']. + * @param string $class The class identifier, must be a value in ['plugin', 'theme', 'library']. * @param string $name Optional. The name of the component that will trigger events. * @param string $version Optional. The version of the component that will trigger events. * @since 1.0.0 @@ -65,15 +65,15 @@ public function addLocalLogger( $logger ) { /** * Logs a panic condition. WordPress is unusable. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function emergency( $message, $context = [] ) { + public function emergency( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -87,15 +87,16 @@ public function emergency( $message, $context = [] ) { * Logs a major operating error that undoubtedly affects the operations. * It requires immediate investigation and corrective treatment. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function alert( $message, $context = [] ) { + public function alert( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -109,15 +110,16 @@ public function alert( $message, $context = [] ) { * Logs an operating error that undoubtedly affects the operations. * It requires investigation and corrective treatment. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function critical( $message, $context = [] ) { + public function critical( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -131,15 +133,16 @@ public function critical( $message, $context = [] ) { * Logs a minor operating error that may affects the operations. * It requires investigation and preventive treatment. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function error( $message, $context = [] ) { + public function error( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -153,15 +156,16 @@ public function error( $message, $context = [] ) { * Logs a significant condition indicating a situation that may lead to an error if recurring or if no action is taken. * Does not usually affect the operations. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function warning( $message, $context = [] ) { + public function warning( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -174,15 +178,16 @@ public function warning( $message, $context = [] ) { /** * Logs a normal but significant condition. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function notice( $message, $context = [] ) { + public function notice( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -195,15 +200,16 @@ public function notice( $message, $context = [] ) { /** * Logs a standard information. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function info( $message, $context = [] ) { + public function info( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -217,15 +223,16 @@ public function info( $message, $context = [] ) { * Logs an information for developers and testers. * Only used for events related to application/system debugging. * - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function debug( $message, $context = [] ) { + public function debug( string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -238,16 +245,17 @@ public function debug( $message, $context = [] ) { /** * Logs an information with an arbitrary level. * - * @param \Psr\Log\LogLevel $level The level of the message to log. - * @param string $message The message to log. - * @param array $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element of context - * that you can pass to DecaLog is a numerical error code ($context['code']). All other - * element of context will be removed. + * @param LogLevel $level The level of the message to log. + * @param string|\Stringable $message The message to log. + * @param mixed[] $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element + * of context that you can pass to DecaLog is a numerical error code + * ($context['code']). All other element of context will be removed. + * * @return void - * @since 1.0.0 + * @since 4.0.0 */ - public function log( $level, $message, $context = [] ) { + public function log( $level, string|\Stringable $message, array $context = [] ): void { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -258,10 +266,10 @@ public function log( $level, $message, $context = [] ) { } } -} else { +} else { // if version in not detected or equal to 1 /** - * DecaLog PSR-3 logger class. + * DecaLog PSR-3 logger class. Failsafe for old PSR-3 versions. * * This class defines all code necessary to log events with DecaLog. * If DecaLog is not installed, it will do nothing and will not throw errors. @@ -283,7 +291,7 @@ class EventsLogger implements \Psr\Log\LoggerInterface { /** * Initialize the class and set its properties. * - * @param string $class The class identifier, must be a value in ['plugin', 'theme']. + * @param string $class The class identifier, must be a value in ['plugin', 'theme', 'library']. * @param string $name Optional. The name of the component that will trigger events. * @param string $version Optional. The version of the component that will trigger events. * @since 1.0.0 @@ -314,15 +322,15 @@ public function addLocalLogger( $logger ) { /** * Logs a panic condition. WordPress is unusable. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function emergency( string|\Stringable $message, array $context = [] ): void { + public function emergency( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -336,16 +344,15 @@ public function emergency( string|\Stringable $message, array $context = [] ): v * Logs a major operating error that undoubtedly affects the operations. * It requires immediate investigation and corrective treatment. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function alert( string|\Stringable $message, array $context = [] ): void { + public function alert( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -359,16 +366,15 @@ public function alert( string|\Stringable $message, array $context = [] ): void * Logs an operating error that undoubtedly affects the operations. * It requires investigation and corrective treatment. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function critical( string|\Stringable $message, array $context = [] ): void { + public function critical( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -382,16 +388,15 @@ public function critical( string|\Stringable $message, array $context = [] ): vo * Logs a minor operating error that may affects the operations. * It requires investigation and preventive treatment. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function error( string|\Stringable $message, array $context = [] ): void { + public function error( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -405,16 +410,15 @@ public function error( string|\Stringable $message, array $context = [] ): void * Logs a significant condition indicating a situation that may lead to an error if recurring or if no action is taken. * Does not usually affect the operations. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function warning( string|\Stringable $message, array $context = [] ): void { + public function warning( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -427,16 +431,15 @@ public function warning( string|\Stringable $message, array $context = [] ): voi /** * Logs a normal but significant condition. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function notice( string|\Stringable $message, array $context = [] ): void { + public function notice( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -449,16 +452,15 @@ public function notice( string|\Stringable $message, array $context = [] ): void /** * Logs a standard information. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function info( string|\Stringable $message, array $context = [] ): void { + public function info( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -472,16 +474,15 @@ public function info( string|\Stringable $message, array $context = [] ): void { * Logs an information for developers and testers. * Only used for events related to application/system debugging. * - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function debug( string|\Stringable $message, array $context = [] ): void { + public function debug( $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); @@ -494,17 +495,16 @@ public function debug( string|\Stringable $message, array $context = [] ): void /** * Logs an information with an arbitrary level. * - * @param LogLevel $level The level of the message to log. - * @param string|\Stringable $message The message to log. - * @param mixed[] $context Optional. The context of the event. - * FYI, DecaLog has its own context-aware logging system. The only element - * of context that you can pass to DecaLog is a numerical error code - * ($context['code']). All other element of context will be removed. - * + * @param \Psr\Log\LogLevel $level The level of the message to log. + * @param string $message The message to log. + * @param array $context Optional. The context of the event. + * FYI, DecaLog has its own context-aware logging system. The only element of context + * that you can pass to DecaLog is a numerical error code ($context['code']). All other + * element of context will be removed. * @return void - * @since 4.0.0 + * @since 1.0.0 */ - public function log( $level, string|\Stringable $message, array $context = [] ): void { + public function log( $level, $message, $context = [] ) { if ( ! is_array( $context ) ) { $context = [ 'code' => 30973 ]; $this->debug( 'Wrong method argument: `$context` must be an array.', $context ); diff --git a/includes/libraries/decalog-sdk/MetricsLogger.php b/includes/libraries/decalog-sdk/MetricsLogger.php index e1760a8..174daae 100644 --- a/includes/libraries/decalog-sdk/MetricsLogger.php +++ b/includes/libraries/decalog-sdk/MetricsLogger.php @@ -32,7 +32,7 @@ class MetricsLogger { /** * Initialize the class and set its properties. * - * @param string $class The class identifier, must be a value in ['plugin', 'theme']. + * @param string $class The class identifier, must be a value in ['plugin', 'theme', 'library']. * @param string $name Optional. The name of the component that will trigger events. * @param string $version Optional. The version of the component that will trigger events. * @since 1.0.0 diff --git a/includes/libraries/decalog-sdk/TracesLogger.php b/includes/libraries/decalog-sdk/TracesLogger.php index 513e722..c8aa515 100644 --- a/includes/libraries/decalog-sdk/TracesLogger.php +++ b/includes/libraries/decalog-sdk/TracesLogger.php @@ -32,7 +32,7 @@ class TracesLogger { /** * Initialize the class and set its properties. * - * @param string $class The class identifier, must be a value in ['plugin', 'theme']. + * @param string $class The class identifier, must be a value in ['plugin', 'theme', 'library']. * @param string $name Optional. The name of the component that will trigger events. * @param string $version Optional. The version of the component that will trigger events. * @since 1.0.0 diff --git a/init.php b/init.php index 170b55e..c586fd5 100644 --- a/init.php +++ b/init.php @@ -12,6 +12,6 @@ define( 'POSE_PRODUCT_SHORTNAME', 'Sessions' ); define( 'POSE_PRODUCT_ABBREVIATION', 'posessions' ); define( 'POSE_SLUG', 'sessions' ); -define( 'POSE_VERSION', '2.13.3' ); +define( 'POSE_VERSION', '2.14.0' ); define( 'POSE_CODENAME', '"-"' ); define( 'POSE_CDN_AVAILABLE', true ); \ No newline at end of file diff --git a/readme.txt b/readme.txt index f86dbbe..2efc44a 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: authentication, login, protection, role, session Requires at least: 6.2 Requires PHP: 8.1 Tested up to: 6.5 -Stable tag: 2.13.3 +Stable tag: 2.14.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html diff --git a/sessions.php b/sessions.php index e67e776..16191ef 100644 --- a/sessions.php +++ b/sessions.php @@ -10,7 +10,7 @@ * Plugin Name: Sessions * Plugin URI: https://perfops.one/sessions * Description: Powerful sessions manager for WordPress with sessions limiter and full analytics reporting capabilities. - * Version: 2.13.3 + * Version: 2.14.0 * Requires at least: 6.2 * Requires PHP: 8.1 * Author: Pierre Lannoy / PerfOps One