Skip to content

Commit

Permalink
Version 1.4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sanzeeb3 committed Apr 8, 2021
1 parent 0591e3d commit f3f125c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/css/wp-force-logout.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion includes/class-wp-force-logout-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public function __construct() {

global $pagenow;

add_action( 'wp_ajax_wp_force_logout_dismiss_review_notice', array( $this, 'dismiss_review_notice' ) );

// Return if it's not the users page and if user do not have capability to force logout.
if ( 'users.php' !== $pagenow || ! $this->user_has_cap() ) {
return;
Expand All @@ -47,7 +49,6 @@ public function __construct() {
add_filter( 'bulk_actions-users', array( $this, 'add_bulk_action' ) );
add_action( 'restrict_manage_users', array( $this, 'add_all_users_logout' ), 1000 );
add_action( 'in_admin_header', array( $this, 'review_notice' ), 100 );
add_action( 'wp_ajax_wp_force_logout_dismiss_review_notice', array( $this, 'dismiss_review_notice' ) );
}

/**
Expand Down Expand Up @@ -414,6 +415,10 @@ public function review_notice() {
global $current_screen;

// Show only to Admins
if ( ! $this->user_has_cap() ) {
return;
}

$notice_dismissed = get_option( 'wpfl_review_notice_dismissed', 'no' );

if ( 'yes' == $notice_dismissed ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wp-force-logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class WP_Force_Logout {
*
* @var string
*/
public $version = '1.4.4';
public $version = '1.4.4.1';


/**
Expand Down
2 changes: 1 addition & 1 deletion languages/wp-force-logout.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WPForce Logout 1.4.4\n"
"Report-Msgid-Bugs-To: https://github.com/sanzeeb3/wp-force-logout/issues\n"
"POT-Creation-Date: 2021-04-08 03:49:37+00:00\n"
"POT-Creation-Date: 2021-04-08 03:52:34+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wp-force-logout",
"description": "Forcefully logout WordPress user(s).",
"version": "1.4.4",
"version": "1.4.4.1",
"homepage": "http://sanjeebaryal.com.np",
"repository": {
"type": "git",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: logout, force, online, last seen, last login
Requires at least: 4.0
Tested up to: 5.7
Requires PHP: 5.6
Stable tag: 1.4.4
Stable tag: 1.4.4.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -51,6 +51,9 @@ Yes you can! Join in on [GitHub repository](https://github.com/sanzeeb3/wp-force

== Changelog ==

= 1.4.4.1 - 04/08/2021 =
* Fix - Review notice cap check

= 1.4.4 - 04/08/2021 =
* Fix - Fatal error on single site admins in a multisite installation.

Expand Down
2 changes: 1 addition & 1 deletion wp-force-logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: WPForce Logout
* Description: Forcefully logout WordPress user(s).
* Version: 1.4.4
* Version: 1.4.4.1
* Author: Sanjeev Aryal
* Author URI: http://www.sanjeebaryal.com.np
* Text Domain: wp-force-logout
Expand Down

0 comments on commit f3f125c

Please sign in to comment.