Skip to content

Commit

Permalink
Merge pull request #1114 from vektor-inc/fix/child-page/php-error-pos…
Browse files Browse the repository at this point in the history
…t-id

[ Change version ] 9.99.6.0 [ Bug fix ][ Child Page List ] Fixed an issue related to a PHP error.
  • Loading branch information
kurudrive authored Oct 2, 2024
2 parents 4427931 + 512b933 commit 455c743
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 8 additions & 6 deletions inc/child-page-index/child-page-index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
Child page index
Child page index
/*-------------------------------------------*/

function veu_child_page_excerpt( $post ) {
Expand Down Expand Up @@ -45,7 +45,9 @@ function vkExUnit_childPageIndex_shortcode( $parentId = null, $classes = '' ) {
$parentId = $widget_pageid;
} else {
global $post;
$parentId = $post->ID;
if ( ! empty( $post->ID ) ) {
$parentId = $post->ID;
}
}
}

Expand Down Expand Up @@ -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 ) {

Expand All @@ -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() {
Expand All @@ -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 ) {
Expand Down Expand Up @@ -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';
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion vkExUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 455c743

Please sign in to comment.