Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Logger plugin to version 2.4.2 #123

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion inc/handler/class-post-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down