SNS Count Cache - Version 0.11.1

Version Description

  • Fixed: Facebook share count becomes N/A in share count page in a certain situation.

=

Download this release

Release Info

Developer marubon
Plugin Icon SNS Count Cache
Version 0.11.1
Comparing to
See all releases

Code changes from version 0.11.0 to 0.11.1

includes/class-scc-share-facebook-strategy.php CHANGED
@@ -96,6 +96,8 @@ class SCC_Share_Facebook_Strategy extends SCC_Crawl_Strategy {
96
 
97
  if ( isset( $json['share']['share_count'] ) && is_numeric( $json['share']['share_count'] ) ) {
98
  $count = (int) $json['share']['share_count'];
 
 
99
  } else {
100
  $count = (int) -1;
101
  }
96
 
97
  if ( isset( $json['share']['share_count'] ) && is_numeric( $json['share']['share_count'] ) ) {
98
  $count = (int) $json['share']['share_count'];
99
+ } elseif ( isset( $json['id'] ) && ! isset( $json['share']['share_count'] ) ) {
100
+ $count = (int) 0;
101
  } else {
102
  $count = (int) -1;
103
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: performance, SNS, social, cache, share, follower
5
  Requires at least: 3.7
6
  Tested up to: 4.7.2
7
- Stable tag: 0.11.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -183,6 +183,9 @@ There are no questions.
183
  * Added: NewShareCounts is included in selectable Twitter API alternatives.
184
  * Added: function to retrieve share count of Linkedin.
185
 
 
 
 
186
  == Upgrade Notice ==
187
  The following functions are deprecated.
188
 
4
  Tags: performance, SNS, social, cache, share, follower
5
  Requires at least: 3.7
6
  Tested up to: 4.7.2
7
+ Stable tag: 0.11.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
183
  * Added: NewShareCounts is included in selectable Twitter API alternatives.
184
  * Added: function to retrieve share count of Linkedin.
185
 
186
+ = 0.11.1 =
187
+ * Fixed: Facebook share count becomes N/A in share count page in a certain situation.
188
+
189
  == Upgrade Notice ==
190
  The following functions are deprecated.
191
 
sns-count-cache.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SNS Count Cache
4
  Description: SNS Count Cache gets share count for Twitter and Facebook, Google Plus, Pocket, Pinterest, Linkedin, Hatena Bookmark and caches these count in the background. This plugin may help you to shorten page loading time because the share count can be retrieved not through network but through the cache using given functions.
5
- Version: 0.11.0
6
  Plugin URI: https://wordpress.org/plugins/sns-count-cache/
7
  Author: Daisuke Maruyama
8
  Author URI: https://marubon.info/
@@ -690,7 +690,7 @@ final class SNS_Count_Cache implements SCC_Order {
690
  /**
691
  * Plugin version, used for cache-busting of style and script file references.
692
  */
693
- private $version = '0.10.1';
694
 
695
  /**
696
  * Instances of crawler
2
  /*
3
  Plugin Name: SNS Count Cache
4
  Description: SNS Count Cache gets share count for Twitter and Facebook, Google Plus, Pocket, Pinterest, Linkedin, Hatena Bookmark and caches these count in the background. This plugin may help you to shorten page loading time because the share count can be retrieved not through network but through the cache using given functions.
5
+ Version: 0.11.1
6
  Plugin URI: https://wordpress.org/plugins/sns-count-cache/
7
  Author: Daisuke Maruyama
8
  Author URI: https://marubon.info/
690
  /**
691
  * Plugin version, used for cache-busting of style and script file references.
692
  */
693
+ private $version = '0.11.1';
694
 
695
  /**
696
  * Instances of crawler