VK All in One Expansion Unit - Version 9.48.3.0

Version Description

[ Bug fix ] Cope with before 5.0

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 9.48.3.0
Comparing to
See all releases

Code changes from version 9.48.2.0 to 9.48.3.0

inc/child-page-index/child-page-index.php CHANGED
@@ -218,26 +218,29 @@ add_action( 'init', 'veu_child_page_index_setup', 15 );
218
  function veu_child_page_index_setup() {
219
  global $common_attributes;
220
 
221
- register_block_type(
222
- 'vk-blocks/child-page-index',
223
- array(
224
- 'attributes' => array_merge(
225
- array(
226
- 'className' => array(
227
- 'type' => 'string',
228
- 'default' => ''
229
- ),
230
- 'postId' => array(
231
- 'type' => 'number',
232
- 'default' => -1
 
 
233
  ),
 
234
  ),
235
- $common_attributes
236
- ),
237
- 'editor_script' => 'veu-block',
238
- 'editor_style' => 'veu-block-editor',
239
- 'render_callback' => 'veu_childPageIndex_block_callback',
240
- 'supports' => [],
241
- )
242
- );
243
  }
218
  function veu_child_page_index_setup() {
219
  global $common_attributes;
220
 
221
+ if ( function_exists( 'register_block_type' ) ){
222
+ register_block_type(
223
+ 'vk-blocks/child-page-index',
224
+ array(
225
+ 'attributes' => array_merge(
226
+ array(
227
+ 'className' => array(
228
+ 'type' => 'string',
229
+ 'default' => ''
230
+ ),
231
+ 'postId' => array(
232
+ 'type' => 'number',
233
+ 'default' => -1
234
+ ),
235
  ),
236
+ $common_attributes
237
  ),
238
+ 'editor_script' => 'veu-block',
239
+ 'editor_style' => 'veu-block-editor',
240
+ 'render_callback' => 'veu_childPageIndex_block_callback',
241
+ 'supports' => [],
242
+ )
243
+ );
244
+ }
245
+
246
  }
inc/page-list-ancestor/page-list-ancestor.php CHANGED
@@ -142,24 +142,28 @@ function veu_page_list_ancestor_save_custom_field( $post_id ) {
142
  add_action( 'init', 'veu_page_list_ancestor_block_setup', 15 );
143
  function veu_page_list_ancestor_block_setup() {
144
  global $common_attributes;
145
- register_block_type(
146
- 'vk-blocks/page-list-ancestor',
147
- array(
148
- 'attributes' => array(
149
- 'className' => array(
150
- 'type' => 'string',
151
- 'default' => ''
 
 
 
 
152
  ),
153
- $common_attributes
154
- ),
155
- 'editor_script' => 'veu-block',
156
- 'editor_style' => 'veu-block-editor',
157
- 'render_callback' => 'veu_pageListAncestor_block_callback',
158
- 'supports' => [],
159
- )
160
- );
161
  }
162
 
 
163
  function veu_pageListAncestor_block_callback( $attr=array() ) {
164
  include dirname(dirname(__FILE__)) .'/vk-blocks/hidden-utils.php';
165
 
142
  add_action( 'init', 'veu_page_list_ancestor_block_setup', 15 );
143
  function veu_page_list_ancestor_block_setup() {
144
  global $common_attributes;
145
+
146
+ if ( function_exists( 'register_block_type' ) ){
147
+ register_block_type(
148
+ 'vk-blocks/page-list-ancestor',
149
+ array(
150
+ 'attributes' => array(
151
+ 'className' => array(
152
+ 'type' => 'string',
153
+ 'default' => ''
154
+ ),
155
+ $common_attributes
156
  ),
157
+ 'editor_script' => 'veu-block',
158
+ 'editor_style' => 'veu-block-editor',
159
+ 'render_callback' => 'veu_pageListAncestor_block_callback',
160
+ 'supports' => [],
161
+ )
162
+ );
163
+ }
 
164
  }
165
 
166
+
167
  function veu_pageListAncestor_block_callback( $attr=array() ) {
168
  include dirname(dirname(__FILE__)) .'/vk-blocks/hidden-utils.php';
169
 
inc/sitemap-page/sitemap-page.php CHANGED
@@ -281,20 +281,22 @@ function vkExUnit_save_custom_field_sitemapData( $post_id ) {
281
  add_action( 'init', 'veu_sitemap_block_setup', 15 );
282
  function veu_sitemap_block_setup() {
283
  global $common_attributes;
284
- register_block_type(
285
- 'vk-blocks/sitemap',
286
- array(
287
- 'attributes' => array(
288
- 'className' => array(
289
- 'type' => 'string',
290
- 'default' => '',
 
 
 
291
  ),
292
- $common_attributes
293
- ),
294
- 'editor_script' => 'veu-block',
295
- 'editor_style' => 'veu-block-editor',
296
- 'render_callback' => 'vkExUnit_sitemap',
297
- 'supports' => [],
298
- )
299
- );
300
  }
281
  add_action( 'init', 'veu_sitemap_block_setup', 15 );
282
  function veu_sitemap_block_setup() {
283
  global $common_attributes;
284
+ if ( function_exists( 'register_block_type' ) ){
285
+ register_block_type(
286
+ 'vk-blocks/sitemap',
287
+ array(
288
+ 'attributes' => array(
289
+ 'className' => array(
290
+ 'type' => 'string',
291
+ 'default' => '',
292
+ ),
293
+ $common_attributes
294
  ),
295
+ 'editor_script' => 'veu-block',
296
+ 'editor_style' => 'veu-block-editor',
297
+ 'render_callback' => 'vkExUnit_sitemap',
298
+ 'supports' => [],
299
+ )
300
+ );
301
+ }
 
302
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.0.0
6
  Tested up to: 5.5.3
7
- Stable tag: 9.48.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,9 @@ e.g.
81
 
82
  == Changelog ==
83
 
 
 
 
84
  = 9.48.2.0 =
85
  [ Specification Change ] Load Term Color on init
86
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.0.0
6
  Tested up to: 5.5.3
7
+ Stable tag: 9.48.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 9.48.3.0 =
85
+ [ Bug fix ] Cope with before 5.0
86
+
87
  = 9.48.2.0 =
88
  [ Specification Change ] Load Term Color on init
89
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * 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!
6
- * Version: 9.48.2.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * 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!
6
+ * Version: 9.48.3.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages