From 469b5c6a8b8b23e4cbaffe6640b6431463e430bf Mon Sep 17 00:00:00 2001 From: Damian Taggart <4309872+attackant@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:27:22 -0600 Subject: [PATCH] Update Logger plugin to version 2.4.2 This commit updates the Alley Logger plugin to version 2.4.2. It corrects an incorrectly named variable in the `Post_Handler` class which improves the plugin's overall functionality and reliability. Moreover, the plugin compatibility has been updated, confirming it's tested with WordPress version 6.5.5. --- CHANGELOG.md | 4 ++++ inc/handler/class-post-handler.php | 2 +- logger.php | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27a1d208..9f20d146 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/en/1.0.0/). +## 2.4.2 - 2024-06-28 + +- Fix an incorrectly named variable in the `Post_Handler` class. + ## 2.4.1 - 2024-04-30 - Re-release of 2.4.1. diff --git a/inc/handler/class-post-handler.php b/inc/handler/class-post-handler.php index fa2938ba..ede30ed7 100644 --- a/inc/handler/class-post-handler.php +++ b/inc/handler/class-post-handler.php @@ -98,7 +98,7 @@ public function clear() { * @param array $record Log Record. */ protected function write( array $record ): void { - if ( empty( $log['context'] ) || 'front-end' !== $log['context'] ) { + if ( empty( $record['context'] ) || 'front-end' !== $record['context'] ) { // Store the backtrace for only this handler. Not created as a processor // to avoid bloat of backtrace on all log types. $record['extra']['backtrace'] = Backtrace::create()->startingFromFrame( diff --git a/logger.php b/logger.php index af971ce7..ee4d5fdf 100644 --- a/logger.php +++ b/logger.php @@ -3,11 +3,11 @@ * Plugin Name: Alley Logger * Plugin URI: https://github.com/alleyinteractive/logger * Description: A Monolog-based logging tool for WordPress. Supports storing log message in a custom post type or in individual posts and terms. - * Version: 2.4.1 + * Version: 2.4.2 * Author: Alley Interactive * Author URI: https://alley.com/ * Requires at least: 5.9 - * Tested up to: 5.9 + * Tested up to: 6.5.5 * * Text Domain: ai-logger * Domain Path: /languages/