Fixed Notice Error

This commit is contained in:
2024-06-07 23:58:28 +09:00
parent 49d6527486
commit 49f7d3088c
+4
View File
@@ -121,6 +121,10 @@ if ( ! trait_exists( 'CUSTOMPOSTS' ) ) {
return; return;
} }
if( ! isset($per_page_option['custompost_archive'] ) ){
return;
}
$per_page_option_data = $per_page_option['custompost_archive'][ $post_type ]; $per_page_option_data = $per_page_option['custompost_archive'][ $post_type ];
if ( ! isset( $per_page_option_data ) ) { if ( ! isset( $per_page_option_data ) ) {
return; return;