WP PLUGIN バグ修正(カスタムフィールドの値がない場合)
・カスタムフィールドの値がない場合にreturnするよう修正
This commit is contained in:
@@ -192,6 +192,9 @@ if ( ! trait_exists( 'APOP_ORDER_SETTING' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static function set_custom_field_orderby( $apop_order_param ): array {
|
private static function set_custom_field_orderby( $apop_order_param ): array {
|
||||||
|
if ( ! $apop_order_param ) {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
$sort_param = array( 1 => 'ASC', 2 => 'DESC' );
|
$sort_param = array( 1 => 'ASC', 2 => 'DESC' );
|
||||||
$meta_query = null;
|
$meta_query = null;
|
||||||
$orderby = null;
|
$orderby = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user