diff --git a/auto-logout-extended.php b/auto-logout-extended.php index 3430c2e..170cc27 100644 --- a/auto-logout-extended.php +++ b/auto-logout-extended.php @@ -5,7 +5,7 @@ Plugin URI: https://develop.n-k-y.net/wordpress/wp_plugin/auto-logout-extended Author: NBK45 Author URI: https://develop.n-k-y.net Description: Auto Logout Extended は自動ログアウトとログイン状態保存を拡張するプラグインです。一定時間無操作のときに自動でログアウトする設定と(ログアウトせず)ブラウザ終了した場合のログイン状態の保存期間の設定が可能です。 -Version: 1.1.0 +Version: 1.1.1 License: GPLv2 */ diff --git a/class/class.al_ext.php b/class/class.al_ext.php index a0036a7..1984f55 100644 --- a/class/class.al_ext.php +++ b/class/class.al_ext.php @@ -16,7 +16,9 @@ if ( ! class_exists( 'AL_EXT' ) ) { public function __construct() { $this->options = get_option( '_al_ext' ); - + if(!$this->options){ + return; + } if ( $this->options['type'] == 1 ) { $this->normal_expire(); } elseif ( $this->options['type'] == 2 ) { diff --git a/readme.txt b/readme.txt index 5edeecf..bfc0604 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: logout,rememberme Requires at least: 4.9 Tested up to: 5.8 Requires PHP: 7.0 -Stable tag: 1.1.0 +Stable tag: 1.1.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -55,6 +55,9 @@ screenshot-4.png == Changelog == += 1.1.1 = +・インストール時のNoticeエラーの修正 + = 1.1.0 = ・ログイン状態の保存期間の入力範囲が1〜500日になるよう修正 ・自動ログアウトの入力範囲が1〜120分になるよう修正