From 27acd639435a0053e7bbe8a78e3e3b182cb5aa5c Mon Sep 17 00:00:00 2001 From: Pierre Lannoy Date: Fri, 15 May 2020 08:20:37 +0200 Subject: [PATCH] Ready to release 1.1.2 on wp.org. --- CHANGELOG.md | 5 ++++- includes/features/class-capture.php | 4 ++-- init.php | 2 +- readme.txt | 2 +- sessions.php | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4dd864..e576ef1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,12 @@ 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). -## [Unreleased - will be 1.1.2] +## [1.1.2] - 2020-05-15 +### Changed +- Supports now Wordfence alerting system inconsistency. ### Fixed - When used for the first time, settings checkboxes may remain checked after being unchecked. +- When Wordfence lock out an account, a warning maybe wrongly send to [DecaLog](https://wordpress.org/plugins/decalog/). ## [1.1.1] - 2020-05-05 ### Changed diff --git a/includes/features/class-capture.php b/includes/features/class-capture.php index 1fbec16..72518ce 100644 --- a/includes/features/class-capture.php +++ b/includes/features/class-capture.php @@ -140,7 +140,7 @@ public static function init() { * @since 1.0.0 */ public static function late_init() { - add_action( 'wordfence_security_event', [ self::class, 'wordfence_security_event' ], 10, 3 ); + add_action( 'wordfence_security_event', [ self::class, 'wordfence_security_event' ], 10, 1 ); } /** @@ -317,7 +317,7 @@ public static function jpp_kill_login( $ip ) { * * @since 1.6.0 */ - public function wordfence_security_event( $event, $details, $a ) { + public static function wordfence_security_event( $event, $details = null, $a = null ) { if ( 'loginLockout' === $event || 'breachLogin' === $event ) { self::$login_block ++; Logger::info( 'Login blocked.' ); diff --git a/init.php b/init.php index 4a7989f..53cdd0d 100644 --- a/init.php +++ b/init.php @@ -12,7 +12,7 @@ define( 'POSE_PRODUCT_SHORTNAME', 'Sessions' ); define( 'POSE_PRODUCT_ABBREVIATION', 'posessions' ); define( 'POSE_SLUG', 'sessions' ); -define( 'POSE_VERSION', '1.1.2-dev0' ); +define( 'POSE_VERSION', '1.1.2' ); define( 'POSE_CODENAME', '"-"' ); define( 'POSE_CDN_AVAILABLE', true ); diff --git a/readme.txt b/readme.txt index b108efa..7148c9a 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: authentication, login, protection, role, session Requires at least: 5.2 Requires PHP: 7.2 Tested up to: 5.3 -Stable tag: 1.1.1 +Stable tag: 1.1.2 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html diff --git a/sessions.php b/sessions.php index 6f74162..0e60021 100644 --- a/sessions.php +++ b/sessions.php @@ -10,7 +10,7 @@ * Plugin Name: Sessions * Plugin URI: https://github.com/Pierre-Lannoy/wp-sessions * Description: Powerful sessions manager for WordPress with sessions limiter and full analytics reporting capabilities. - * Version: 1.1.1 + * Version: 1.1.2 * Requires at least: 5.2 * Requires PHP: 7.2 * Author: Pierre Lannoy