Skip to content

Commit

Permalink
Prepare for v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sanzeeb3 committed Jan 29, 2020
1 parent e7d0734 commit 23e7509
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion assets/css/wp-force-logout.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions includes/class-wp-force-logout-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct() {
add_filter( 'users_list_table_query_args', array( $this, 'sortby_login_activity' ) );
add_action( 'init', array( $this, 'update_online_users_status' ) );
add_action( 'init', array( $this, 'update_last_login' ) );
// add_action( 'load-users.php', array( $this, 'add_last_login' ) );
// add_action( 'load-users.php', array( $this, 'add_last_login' ) ); // Commented since 1.3.0.
add_action( 'load-users.php', array( $this, 'trigger_query_actions' ) );
add_action( 'load-users.php', array( $this, 'trigger_bulk_actions' ) );
add_filter( 'bulk_actions-users', array( $this, 'add_bulk_action' ) );
Expand Down Expand Up @@ -274,7 +274,7 @@ public function add_last_login() {
foreach ( $users as $user ) {
$last_login = get_user_meta( $user->ID, 'last_login', true );
if ( empty( $last_login ) ) {
update_user_meta( $user->ID, 'last_login', 0.00058373 ); // Store random number to identify.
update_user_meta( $user->ID, 'last_login', 0.00058373 ); // Store random number to identify. Because meta_ley last_login is required for the sortby login activitiy feature to display all previous users too. Currently, the feature is disabled as it seems to effect performance.
}
}
}
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.2.2';
public $version = '1.3.0';


/**
Expand Down
20 changes: 10 additions & 10 deletions languages/wp-force-logout.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the same license as the WPForce Logout package.
msgid ""
msgstr ""
"Project-Id-Version: WPForce Logout 1.2.2\n"
"Project-Id-Version: WPForce Logout 1.3.0\n"
"Report-Msgid-Bugs-To: https://github.com/sanzeeb3/wp-force-logout/issues\n"
"POT-Creation-Date: 2020-01-19 12:57:37+00:00\n"
"POT-Creation-Date: 2020-01-29 07:30:05+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -57,37 +57,37 @@ msgstr ""
msgid "Never"
msgstr ""

#: includes/class-wp-force-logout-process.php:380
#: includes/class-wp-force-logout-process.php:382
msgid "Logout"
msgstr ""

#: includes/class-wp-force-logout-process.php:393
#: includes/class-wp-force-logout-process.php:395
msgid "Logout All Users"
msgstr ""

#: includes/class-wp-force-logout-process.php:443
#: includes/class-wp-force-logout-process.php:445
msgid ""
"Would you care to let me know the deactivation reason so that I can improve "
"it for you?"
msgstr ""

#: includes/class-wp-force-logout-process.php:450
#: includes/class-wp-force-logout-process.php:452
msgid "Skip and deactivate"
msgstr ""

#: includes/class-wp-force-logout-process.php:520
#: includes/class-wp-force-logout-process.php:522
msgid "Whoopee! 😀"
msgstr ""

#: includes/class-wp-force-logout-process.php:524
#: includes/class-wp-force-logout-process.php:526
msgid "Sure, I'd love to!"
msgstr ""

#: includes/class-wp-force-logout-process.php:525
#: includes/class-wp-force-logout-process.php:527
msgid "I already did!"
msgstr ""

#: includes/class-wp-force-logout-process.php:526
#: includes/class-wp-force-logout-process.php:528
msgid "Never show again"
msgstr ""

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.2.2",
"version": "1.3.0",
"homepage": "http://sanjeebaryal.com.np",
"repository": {
"type": "git",
Expand Down
3 changes: 2 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.3.0
Requires PHP: 5.3
Stable tag: 1.2.2
Stable tag: 1.3.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

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

= 1.3.3 - xx/xx/2020 =
* Enhancement - Load assets conditionally.
* Fix - Memory timeout for large number of users.

= 1.2.2 - 07/05/2019 =
* Feature - Sortby login activity.
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.2.2
* Version: 1.3.0
* Author: Sanjeev Aryal
* Author URI: http://www.sanjeebaryal.com.np
* Text Domain: wp-force-logout
Expand Down

0 comments on commit 23e7509

Please sign in to comment.