From 49f7d3088cc2657bd1d5ebff7f2decd7e2f95ac5 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 7 Jun 2024 23:58:28 +0900 Subject: [PATCH] Fixed Notice Error --- util/apop-customposts.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/apop-customposts.php b/util/apop-customposts.php index 19a72d4..c6b4a29 100644 --- a/util/apop-customposts.php +++ b/util/apop-customposts.php @@ -120,6 +120,10 @@ if ( ! trait_exists( 'CUSTOMPOSTS' ) ) { if ( ! $per_page_option ) { return; } + + if( ! isset($per_page_option['custompost_archive'] ) ){ + return; + } $per_page_option_data = $per_page_option['custompost_archive'][ $post_type ]; if ( ! isset( $per_page_option_data ) ) {