Kiwi Social Share – Social Media Share Buttons & Icons - Version 2.1.6

Version Description

Fix for when WordPress returns a post type of NULL

Download this release

Release Info

Developer wpkube
Plugin Icon wp plugin Kiwi Social Share – Social Media Share Buttons & Icons
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

includes/lib/class-kiwi-social-share-click-to-tweet.php CHANGED
@@ -52,7 +52,11 @@ class Kiwi_Social_Share_Click_To_Tweet {
52
 
53
  if ( empty( $typenow ) && ! empty( $_GET['post'] ) ) {
54
  $post = get_post( absint( $_GET['post'] ) );
55
- $typenow = $post->post_type;
 
 
 
 
56
  }
57
 
58
  if ( is_array( $this->post_types ) && ! in_array( $typenow, $this->post_types ) ) {
52
 
53
  if ( empty( $typenow ) && ! empty( $_GET['post'] ) ) {
54
  $post = get_post( absint( $_GET['post'] ) );
55
+ if ( empty( $post->post_type ) ) {
56
+ $typenow = 'post';
57
+ } else {
58
+ $typenow = $post->post_type;
59
+ }
60
  }
61
 
62
  if ( is_array( $this->post_types ) && ! in_array( $typenow, $this->post_types ) ) {
kiwi-social-share.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
4
- * Version: 2.1.5
5
  * Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
6
  * Author: WPKube
7
  * Author URI: https://www.wpkube.com/
@@ -58,7 +58,7 @@ require_once 'includes/class-kiwi-social-share-autoloader.php';
58
  * @return object Kiwi_Social_Share
59
  */
60
  function Kiwi_Social_Share() {
61
- $instance = Kiwi_Social_Share::instance( __FILE__, '2.1.5' );
62
 
63
  if ( is_null( $instance->settings ) ) {
64
  $instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
1
  <?php
2
  /*
3
  * Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
4
+ * Version: 2.1.6
5
  * Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
6
  * Author: WPKube
7
  * Author URI: https://www.wpkube.com/
58
  * @return object Kiwi_Social_Share
59
  */
60
  function Kiwi_Social_Share() {
61
+ $instance = Kiwi_Social_Share::instance( __FILE__, '2.1.6' );
62
 
63
  if ( is_null( $instance->settings ) ) {
64
  $instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: wpkube
4
  Tags: social media button, social share button, social floating bar, social share bar, facebook share, social sharing icons, twitter share, woocommerce sharing, share buttons, pinterest share, social share counters
5
  Requires at least: 3.8
6
- Tested up to: 5.9
7
- Stable tag: 2.1.5
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -77,6 +77,9 @@ Floating Bar Filters
77
  kiwi_after_floating_bar
78
 
79
  == Changelog ==
 
 
 
80
  = 2.1.5 =
81
  * CMB2 is no longer used for metaboxes. Custom system is implemented
82
 
3
  Contributors: wpkube
4
  Tags: social media button, social share button, social floating bar, social share bar, facebook share, social sharing icons, twitter share, woocommerce sharing, share buttons, pinterest share, social share counters
5
  Requires at least: 3.8
6
+ Tested up to: 6.0
7
+ Stable tag: 2.1.6
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
77
  kiwi_after_floating_bar
78
 
79
  == Changelog ==
80
+ = 2.1.6 =
81
+ Fix for when WordPress returns a post type of NULL
82
+
83
  = 2.1.5 =
84
  * CMB2 is no longer used for metaboxes. Custom system is implemented
85