From 512b9330d31b1d95de812292b5626c9a24b92e9f Mon Sep 17 00:00:00 2001 From: kurudrive Date: Wed, 2 Oct 2024 16:22:19 +0900 Subject: [PATCH] [ Bug fix ][ Child Page List ] Fixed an issue related to a PHP error. --- inc/child-page-index/child-page-index.php | 14 ++++++++------ readme.txt | 5 ++++- vkExUnit.php | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/inc/child-page-index/child-page-index.php b/inc/child-page-index/child-page-index.php index f3e94f57..3af03993 100644 --- a/inc/child-page-index/child-page-index.php +++ b/inc/child-page-index/child-page-index.php @@ -1,7 +1,7 @@ ID; + if ( ! empty( $post->ID ) ) { + $parentId = $post->ID; + } } } @@ -110,7 +112,7 @@ function vkExUnit_chidPageIndex_loopend( $query ) { } /* - Print Child Page Box at Page + Print Child Page Box at Page /*-------------------------------------------*/ function vkExUnit_childPageIndex_contentHook( $content ) { @@ -134,7 +136,7 @@ function vkExUnit_childPageIndex_contentHook( $content ) { } /* - admin_metabox_content +admin_metabox_content /*-------------------------------------------*/ add_action( 'veu_metabox_insert_items', 'veu_child_page_index_admin_metabox_content' ); function veu_child_page_index_admin_metabox_content() { @@ -152,7 +154,7 @@ function veu_child_page_index_admin_metabox_content() { } /* - save_custom_field +save_custom_field /*-------------------------------------------*/ add_action( 'save_post', 'veu_child_page_index_save_custom_field' ); function veu_child_page_index_save_custom_field( $post_id ) { @@ -183,4 +185,4 @@ function veu_child_page_index_save_custom_field( $post_id ) { do_action( 'vkExUnit_customField_Page_save_customField' ); } -require_once dirname( __FILE__ ) . '/block/index.php'; +require_once __DIR__ . '/block/index.php'; diff --git a/readme.txt b/readme.txt index 683de8c0..d63699ac 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: Google Analytics, Related Posts, sitemap, Facebook Page Plugin, OG tags Requires at least: 6.2 Tested up to: 6.6 Requires PHP: 7.4 -Stable tag: 9.99.5.1 +Stable tag: 9.99.6.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -81,6 +81,9 @@ e.g. == Changelog == += 9.99.6 = +[ Bug fix ][ Child Page List ] Fixed an issue related to a PHP error. + = 9.99.5 = [ Other ] Update VK CSS Optimize 0.2.5 diff --git a/vkExUnit.php b/vkExUnit.php index bc147328..430027a0 100644 --- a/vkExUnit.php +++ b/vkExUnit.php @@ -3,7 +3,7 @@ * Plugin Name: VK All in One Expansion Unit * Plugin URI: https://ex-unit.nagoya * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more! - * Version: 9.99.5.1 + * Version: 9.99.6.0 * Requires PHP: 7.4 * Requires at least: 6.3 * Author: Vektor,Inc.