diff --git a/archive-post-order-plus.php b/archive-post-order-plus.php index 3077132..0b31cb0 100644 --- a/archive-post-order-plus.php +++ b/archive-post-order-plus.php @@ -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 */ diff --git a/readme.txt b/readme.txt index 4a3c694..de24c50 100644 --- a/readme.txt +++ b/readme.txt @@ -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 \ No newline at end of file diff --git a/util/apop-order-setting.php b/util/apop-order-setting.php index 2193d99..8dc6c50 100644 --- a/util/apop-order-setting.php +++ b/util/apop-order-setting.php @@ -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 {