WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 7.8.0.1

Version Description

  • Bugfix: removed call to the Delicious count API in the server-side connectivity check
Download this release

Release Info

Developer hngu_shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 7.8.0.1
Comparing to
See all releases

Code changes from version 7.8.0.0 to 7.8.0.1

lib/social-share-counts/share_count.php CHANGED
@@ -54,12 +54,6 @@ abstract class ShareaholicShareCount {
54
  'prepare' => 'google_plus_prepare_request',
55
  'callback' => 'google_plus_count_callback',
56
  ),
57
- 'delicious' => array(
58
- 'url' => 'http://feeds.delicious.com/v2/json/urlinfo/data?url=%s',
59
- 'method' => 'GET',
60
- 'timeout' => 3,
61
- 'callback' => 'delicious_count_callback',
62
- ),
63
  'pinterest' => array(
64
  'url' => 'https://api.pinterest.com/v1/urls/count.json?url=%s&callback=f',
65
  'method' => 'GET',
@@ -261,23 +255,6 @@ abstract class ShareaholicShareCount {
261
  }
262
 
263
 
264
- /**
265
- * Callback function for delicious count API
266
- * Gets the delicious counts from response
267
- *
268
- * @param Array $response The response from calling the API
269
- * @return mixed The counts from the API or false if error
270
- */
271
- public function delicious_count_callback($response) {
272
- if($this->has_http_error($response)) {
273
- return false;
274
- }
275
- $body = json_decode($response['body'], true);
276
- // special case: do not return false if the count is set because the api can return without total posts
277
- return isset($body[0]['total_posts']) ? intval($body[0]['total_posts']) : 0;
278
- }
279
-
280
-
281
  /**
282
  * Callback function for pinterest count API
283
  * Gets the pinterest counts from response
54
  'prepare' => 'google_plus_prepare_request',
55
  'callback' => 'google_plus_count_callback',
56
  ),
 
 
 
 
 
 
57
  'pinterest' => array(
58
  'url' => 'https://api.pinterest.com/v1/urls/count.json?url=%s&callback=f',
59
  'method' => 'GET',
255
  }
256
 
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  /**
259
  * Callback function for pinterest count API
260
  * Gets the pinterest counts from response
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: shareaholic, shareholic, sexybookmarks, recommendations, related content, cookie consent, share buttons, email button, social sharing, social bookmarking, share image, image sharing, follow buttons, floated share buttons, floating share buttons, analytics, social media, social plugin, facebook, twitter, google plus, google bookmarks, gmail, linkedin, pinterest, reddit, tumblr, evernote, digg, delicious, stumbleupon, printfriendly, fancy, amazon, xing, vk, yahoo, mister wong, viadeo, odnoklassniki box.net, diigo, yammer, ycombinator, hotmail, instapaper, mixi, arto, whatsapp, hootsuite, inbound.org, plurk, aim, buffer, meneame, pinboard.in, stumpedia, bitly, blogger, yummly, izeby, kaboodle, weibo, instagram, tinyurl, typepad, weheartit, flipboard, pocket, wanelo, fark, wykop, symphony, kindle, houzz, youtube, sms, onenote, google classroom, disqus, spotify, zillow, feedly, kik, line, livejournal, baidu
4
  Requires at least: 3.0
5
  Tested up to: 4.4
6
- Stable tag: 7.8.0.0
7
 
8
  World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
9
 
@@ -194,6 +194,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
194
 
195
  == Changelog ==
196
 
 
 
 
197
  = 7.8.0.0 =
198
  * Various language localization updates
199
  * Dutch (nl_NL) by Patrick Catthoor
@@ -1017,6 +1020,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
1017
 
1018
  == Upgrade Notice ==
1019
 
 
 
 
1020
  = 7.8.0.0 =
1021
  Various language localization updates
1022
 
3
  Tags: shareaholic, shareholic, sexybookmarks, recommendations, related content, cookie consent, share buttons, email button, social sharing, social bookmarking, share image, image sharing, follow buttons, floated share buttons, floating share buttons, analytics, social media, social plugin, facebook, twitter, google plus, google bookmarks, gmail, linkedin, pinterest, reddit, tumblr, evernote, digg, delicious, stumbleupon, printfriendly, fancy, amazon, xing, vk, yahoo, mister wong, viadeo, odnoklassniki box.net, diigo, yammer, ycombinator, hotmail, instapaper, mixi, arto, whatsapp, hootsuite, inbound.org, plurk, aim, buffer, meneame, pinboard.in, stumpedia, bitly, blogger, yummly, izeby, kaboodle, weibo, instagram, tinyurl, typepad, weheartit, flipboard, pocket, wanelo, fark, wykop, symphony, kindle, houzz, youtube, sms, onenote, google classroom, disqus, spotify, zillow, feedly, kik, line, livejournal, baidu
4
  Requires at least: 3.0
5
  Tested up to: 4.4
6
+ Stable tag: 7.8.0.1
7
 
8
  World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
9
 
194
 
195
  == Changelog ==
196
 
197
+ = 7.8.0.1 =
198
+ * Bugfix: removed call to the Delicious count API in the server-side connectivity check
199
+
200
  = 7.8.0.0 =
201
  * Various language localization updates
202
  * Dutch (nl_NL) by Patrick Catthoor
1020
 
1021
  == Upgrade Notice ==
1022
 
1023
+ = 7.8.0.1 =
1024
+ * Bugfix: removed call to the Delicious count API in the server-side connectivity check
1025
+
1026
  = 7.8.0.0 =
1027
  Various language localization updates
1028
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 7.8.0.0
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
- Version: 7.8.0.0
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
@@ -63,7 +63,7 @@ if (!class_exists('Shareaholic')) {
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
  const REC_API_URL = 'http://recommendations.shareaholic.com';
65
 
66
- const VERSION = '7.8.0.0';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 7.8.0.1
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
+ Version: 7.8.0.1
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
  const REC_API_URL = 'http://recommendations.shareaholic.com';
65
 
66
+ const VERSION = '7.8.0.1';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
utilities.php CHANGED
@@ -1312,10 +1312,10 @@ class ShareaholicUtilities {
1312
  }
1313
 
1314
  // Did it return at least 8 services?
1315
- $has_majority_services = count(array_keys($response['body']['data'])) >= 8 ? true : false;
1316
  $has_important_services = true;
1317
- // Does it have counts for twtr, linkedin, pinterest, and delicious?
1318
- foreach (array('linkedin', 'pinterest', 'delicious') as $service) {
1319
  if (!isset($response['body']['data'][$service]) || !is_numeric($response['body']['data'][$service])) {
1320
  $has_important_services = false;
1321
  }
1312
  }
1313
 
1314
  // Did it return at least 8 services?
1315
+ $has_majority_services = count(array_keys($response['body']['data'])) >= 6 ? true : false;
1316
  $has_important_services = true;
1317
+ // Does it have counts for fb, linkedin, pinterest?
1318
+ foreach (array('facebook', 'linkedin', 'pinterest') as $service) {
1319
  if (!isset($response['body']['data'][$service]) || !is_numeric($response['body']['data'][$service])) {
1320
  $has_important_services = false;
1321
  }