From b24a531b37ad20cb5e1275535a7e532596189f62 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 14 May 2021 19:00:50 +0900 Subject: [PATCH] =?UTF-8?q?WP=20PLUGIN=20=E3=83=90=E3=82=B0=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=EF=BC=88=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E3=83=95?= =?UTF-8?q?=E3=82=A3=E3=83=BC=E3=83=AB=E3=83=89=E3=81=AE=E5=80=A4=E3=81=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ・カスタムフィールドの値がない場合にreturnするよう修正 --- util/apop-order-setting.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/apop-order-setting.php b/util/apop-order-setting.php index bbb0d64..f34d694 100644 --- a/util/apop-order-setting.php +++ b/util/apop-order-setting.php @@ -192,6 +192,9 @@ if ( ! trait_exists( 'APOP_ORDER_SETTING' ) ) { } private static function set_custom_field_orderby( $apop_order_param ): array { + if ( ! $apop_order_param ) { + return array(); + } $sort_param = array( 1 => 'ASC', 2 => 'DESC' ); $meta_query = null; $orderby = null;