VK All in One Expansion Unit - Version 9.64.3.2

Version Description

Download this release

Release Info

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

Code changes from version 9.64.2.0 to 9.64.3.2

inc/call-to-action/package/class-vk-call-to-action.php CHANGED
@@ -427,15 +427,15 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
427
  if ( ! $id ) {
428
  return '';
429
  }
430
- $post = self::get_cta_post( $id );
431
 
432
- // たぶん何か必ず $post にはデータが返ってくるので事実上不要.
433
- if ( ! $post ) {
434
  return ''; }
435
 
436
  // 本文に入力がある場合は本文を表示.
437
- $cta_content = $post->post_content;
438
- if ( $cta_content && 'veu_cta_normal' !== $post->vkExUnit_cta_use_type ) {
439
  $content = $cta_content;
440
  } else {
441
  // 旧 CTA レイアウト.
@@ -443,7 +443,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
443
  }
444
 
445
  // Display Edit Button.
446
- $url = get_edit_post_link( $post->ID );
447
  if ( $url ) {
448
  $content .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit CTA', 'vk-all-in-one-expansion-unit' ) . '</a></div>';
449
  }
427
  if ( ! $id ) {
428
  return '';
429
  }
430
+ $cta_post = self::get_cta_post( $id );
431
 
432
+ // たぶん何か必ず $cta_post にはデータが返ってくるので事実上不要.
433
+ if ( ! $cta_post ) {
434
  return ''; }
435
 
436
  // 本文に入力がある場合は本文を表示.
437
+ $cta_content = $cta_post->post_content;
438
+ if ( $cta_content && 'veu_cta_normal' !== $cta_post->vkExUnit_cta_use_type ) {
439
  $content = $cta_content;
440
  } else {
441
  // 旧 CTA レイアウト.
443
  }
444
 
445
  // Display Edit Button.
446
+ $url = get_edit_post_link( $cta_post->ID );
447
  if ( $url ) {
448
  $content .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit CTA', 'vk-all-in-one-expansion-unit' ) . '</a></div>';
449
  }
readme.txt CHANGED
@@ -81,6 +81,9 @@ e.g.
81
 
82
  == Changelog ==
83
 
 
 
 
84
  = 9.64.2.0 =
85
  * [ Bug fix ][ Call To Action ] Fix comment bug.
86
 
81
 
82
  == Changelog ==
83
 
84
+ = 9.64.3.0 =
85
+ * [ Bug fix ][ Call To Action ] Fix global $post pollution it's bring to bug for child page list and so on.
86
+
87
  = 9.64.2.0 =
88
  * [ Bug fix ][ Call To Action ] Fix comment bug.
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.64.2.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages
@@ -14,7 +14,7 @@
14
  */
15
 
16
  /*
17
- Copyright 2015-2020 Vektor,Inc. ( email : kurudrive@gmail.com )
18
 
19
  This program is free software; you can redistribute it and/or modify
20
  it under the terms of the GNU General Public License, version 2, as
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.64.3.2
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages
14
  */
15
 
16
  /*
17
+ Copyright 2015-2021 Vektor,Inc. ( email : kurudrive@gmail.com )
18
 
19
  This program is free software; you can redistribute it and/or modify
20
  it under the terms of the GNU General Public License, version 2, as