AUTO LOGOUT EXTENDED

初期エラー(notice)修正
This commit is contained in:
2021-07-05 21:01:42 +09:00
parent 5598be1d0b
commit ae93196007
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Plugin URI: https://develop.n-k-y.net/wordpress/wp_plugin/apop/
Author: NBK45
Author URI: https://develop.n-k-y.net
Description: Archive Post Order Plus は「最新の投稿」「検索結果」「カテゴリー」「タグ」「カスタム分類」の投稿記事の表示順をドラッグで並べ替えて設定するプラグインです。
Version: 1.1.5
Version: 1.1.6
License: GPLv2
*/
+3 -1
View File
@@ -4,7 +4,7 @@ Tags: latest posts order,categories post order,tags post order,custom taxonomy p
Requires at least: 4.9
Tested up to: 5.7.2
Requires PHP: 7.0
Stable tag: 1.1.5
Stable tag: 1.1.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -89,6 +89,8 @@ jquery-ui-autocompleteを明示的にインクルード
= 1.1.5 =
投稿記事のドラッグ並べ替えのスマートフォン対応
= 1.1.6 =
初期データ未設定時にnoticeエラーになっていた箇所を修正
== Upgrade Notice ==
No information
+5
View File
@@ -49,6 +49,11 @@ if ( ! trait_exists( 'APOP_ORDER_SETTING' ) ) {
private static function set_per_page( $target, $id = null ) {
$per_page_option = get_option( '_apop_per_page' );
if(!$per_page_option){
return;
}
if ( is_null( $id ) ) {
$per_page_option_data = $per_page_option[ $target ];
} else {