Skip to content

Commit

Permalink
Ready to release 2.1.0 on wp.org
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Lannoy committed Dec 3, 2020
1 parent c395188 commit 6056ccc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ 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 2.1.0]
## [2.1.0] - 2020-12-03

### Added
- Compatibility with LifterLMS (thanks to [vadimfish](https://wordpress.org/support/users/vadimfish/)).
- Compatibility with WPS Hide Login.
- Compatibility with Loginizer.
- Compatibility with LifterLMS.

### Fixed
- Sorting sessions by "idle" field may produce errors.
- Limiter may fail to limit with some early-initializer plugins (thanks to [vadimfish](https://wordpress.org/support/users/vadimfish/)).

## [2.0.0] - 2020-11-28

Expand Down
9 changes: 5 additions & 4 deletions includes/system/class-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ public static function init() {
if ( Option::network_get( 'forceip' ) ) {
$_SERVER['REMOTE_ADDR'] = IP::get_current();
}
add_action( 'init', [ self::class, 'initialize' ], PHP_INT_MAX );
add_action( 'set_current_user', [ self::class, 'initialize' ], PHP_INT_MAX );
}

Expand All @@ -937,11 +938,11 @@ public function init_if_needed() {
public static function initialize() {
if ( ! isset( self::$instance ) ) {
self::$instance = new static();
self::$instance->init_if_needed();
add_filter( 'auth_cookie_expiration', [ self::$instance, 'cookie_expiration' ], PHP_INT_MAX, 3 );
add_filter( 'authenticate', [ self::$instance, 'limit_logins' ], PHP_INT_MAX, 3 );
add_filter( 'jetpack_sso_handle_login', [ self::$instance, 'jetpack_sso_handle_login' ], PHP_INT_MAX, 2 );
}
self::$instance->init_if_needed();
add_filter( 'auth_cookie_expiration', [ self::$instance, 'cookie_expiration' ], PHP_INT_MAX, 3 );
add_filter( 'authenticate', [ self::$instance, 'limit_logins' ], PHP_INT_MAX, 3 );
add_filter( 'jetpack_sso_handle_login', [ self::$instance, 'jetpack_sso_handle_login' ], PHP_INT_MAX, 2 );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion init.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
define( 'POSE_PRODUCT_SHORTNAME', 'Sessions' );
define( 'POSE_PRODUCT_ABBREVIATION', 'posessions' );
define( 'POSE_SLUG', 'sessions' );
define( 'POSE_VERSION', '2.1.0-dev1' );
define( 'POSE_VERSION', '2.1.0-' );
define( 'POSE_CODENAME', '"-"' );
define( 'POSE_CDN_AVAILABLE', true );

2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: authentication, login, protection, role, session
Requires at least: 5.2
Requires PHP: 7.2
Tested up to: 5.6
Stable tag: 2.0.0
Stable tag: 2.1.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
2 changes: 1 addition & 1 deletion sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2.0.0
* Version: 2.1.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Pierre Lannoy
Expand Down

0 comments on commit 6056ccc

Please sign in to comment.