AUTO LOGOUT EXTENDED:Fix PHP Noticed / Errors

This commit is contained in:
2021-08-10 13:58:43 +09:00
parent d8da58f731
commit 670b837e9e
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Plugin URI: https://develop.n-k-y.net/wordpress/wp_plugin/auto-logout-extended
Author: NBK45 Author: NBK45
Author URI: https://develop.n-k-y.net Author URI: https://develop.n-k-y.net
Description: Auto Logout Extended は自動ログアウトとログイン状態保存を拡張するプラグインです。一定時間無操作のときに自動でログアウトする設定と(ログアウトせず)ブラウザ終了した場合のログイン状態の保存期間の設定が可能です。 Description: Auto Logout Extended は自動ログアウトとログイン状態保存を拡張するプラグインです。一定時間無操作のときに自動でログアウトする設定と(ログアウトせず)ブラウザ終了した場合のログイン状態の保存期間の設定が可能です。
Version: 1.1.0 Version: 1.1.1
License: GPLv2 License: GPLv2
*/ */
+3 -1
View File
@@ -16,7 +16,9 @@ if ( ! class_exists( 'AL_EXT' ) ) {
public function __construct() { public function __construct() {
$this->options = get_option( '_al_ext' ); $this->options = get_option( '_al_ext' );
if(!$this->options){
return;
}
if ( $this->options['type'] == 1 ) { if ( $this->options['type'] == 1 ) {
$this->normal_expire(); $this->normal_expire();
} elseif ( $this->options['type'] == 2 ) { } elseif ( $this->options['type'] == 2 ) {
+4 -1
View File
@@ -4,7 +4,7 @@ Tags: logout,rememberme
Requires at least: 4.9 Requires at least: 4.9
Tested up to: 5.8 Tested up to: 5.8
Requires PHP: 7.0 Requires PHP: 7.0
Stable tag: 1.1.0 Stable tag: 1.1.1
License: GPLv2 or later License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -55,6 +55,9 @@ screenshot-4.png
== Changelog == == Changelog ==
= 1.1.1 =
・インストール時のNoticeエラーの修正
= 1.1.0 = = 1.1.0 =
・ログイン状態の保存期間の入力範囲が1〜500日になるよう修正 ・ログイン状態の保存期間の入力範囲が1〜500日になるよう修正
・自動ログアウトの入力範囲が1〜120分になるよう修正 ・自動ログアウトの入力範囲が1〜120分になるよう修正