Skip to content

Commit

Permalink
Merge pull request #123 from alleyinteractive/fix/rename-var-post-han…
Browse files Browse the repository at this point in the history
…dler

Update Logger plugin to version 2.4.2
  • Loading branch information
attackant authored Jun 28, 2024
2 parents dc8825b + 469b5c6 commit d172a24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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

0 comments on commit d172a24

Please sign in to comment.