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

Version Description

Critical bugfix for older versions of PHP

Download this release

Release Info

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

Code changes from version 8.4.0 to 8.4.1

Files changed (3) hide show
  1. readme.txt +6 -1
  2. shareaholic.php +5 -5
  3. utilities.php +4 -2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: share buttons, related content, cookie compliance, eu cookie law, shareaholic, shareholic, sexybookmarks, recommendations, cookie consent, 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.8
6
- Stable tag: 8.4.0
7
 
8
  World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
9
 
@@ -196,6 +196,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
196
 
197
  == Changelog ==
198
 
 
 
 
199
  = 8.4.0 (2017-09-19) =
200
  * Bugfix: Mark 404 pages as not recommendable
201
  * Various other performance updates and bug fixes
@@ -648,6 +651,8 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
648
  * Show Related Posts data status
649
 
650
  == Upgrade Notice ==
 
 
651
 
652
  = 8.4.0 =
653
  Various bug fixes and enhancements
3
  Tags: share buttons, related content, cookie compliance, eu cookie law, shareaholic, shareholic, sexybookmarks, recommendations, cookie consent, 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.8
6
+ Stable tag: 8.4.1
7
 
8
  World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
9
 
196
 
197
  == Changelog ==
198
 
199
+ = 8.4.1 (2017-09-19) =
200
+ * Critical bugfix for older versions of PHP
201
+
202
  = 8.4.0 (2017-09-19) =
203
  * Bugfix: Mark 404 pages as not recommendable
204
  * Various other performance updates and bug fixes
651
  * Show Related Posts data status
652
 
653
  == Upgrade Notice ==
654
+ = 8.4.1 =
655
+ Critical bugfix for older versions of PHP
656
 
657
  = 8.4.0 =
658
  Various bug fixes and enhancements
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 8.4.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: 8.4.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 = '8.4.0';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
@@ -229,8 +229,8 @@ if (!class_exists('Shareaholic')) {
229
 
230
  // workaround: http://codex.wordpress.org/Function_Reference/register_activation_hook
231
  add_option( 'Activated_Plugin_Shareaholic', 'shareaholic' );
232
-
233
- if (ShareaholicUtilities::has_accepted_terms_of_service() && !empty(ShareaholicUtilities::get_option('api_key'))) {
234
  ShareaholicUtilities::notify_content_manager_sitemap();
235
  ShareaholicUtilities::notify_content_manager_singledomain();
236
  }
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 8.4.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: 8.4.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 = '8.4.1';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
229
 
230
  // workaround: http://codex.wordpress.org/Function_Reference/register_activation_hook
231
  add_option( 'Activated_Plugin_Shareaholic', 'shareaholic' );
232
+ $api_key = ShareaholicUtilities::get_option('api_key');
233
+ if (ShareaholicUtilities::has_accepted_terms_of_service() && !empty($api_key)) {
234
  ShareaholicUtilities::notify_content_manager_sitemap();
235
  ShareaholicUtilities::notify_content_manager_singledomain();
236
  }
utilities.php CHANGED
@@ -344,7 +344,8 @@ class ShareaholicUtilities {
344
  }
345
 
346
  // Re-acquire site content. Important: Run ONLY if API KEY is set
347
- if (ShareaholicUtilities::has_accepted_terms_of_service() && !empty(ShareaholicUtilities::get_option('api_key'))) {
 
348
  ShareaholicUtilities::notify_content_manager_sitemap();
349
  ShareaholicUtilities::notify_content_manager_singledomain();
350
  }
@@ -1001,7 +1002,8 @@ class ShareaholicUtilities {
1001
  return false;
1002
  }
1003
 
1004
- if (ShareaholicUtilities::has_accepted_terms_of_service() && !empty(ShareaholicUtilities::get_option('api_key'))) {
 
1005
  if (in_array($post->post_status, array('draft', 'pending', 'auto-draft'))) {
1006
  // Get the correct permalink for a draft
1007
  $my_post = clone $post;
344
  }
345
 
346
  // Re-acquire site content. Important: Run ONLY if API KEY is set
347
+ $api_key = ShareaholicUtilities::get_option('api_key');
348
+ if (ShareaholicUtilities::has_accepted_terms_of_service() && !empty($api_key)) {
349
  ShareaholicUtilities::notify_content_manager_sitemap();
350
  ShareaholicUtilities::notify_content_manager_singledomain();
351
  }
1002
  return false;
1003
  }
1004
 
1005
+ $api_key = ShareaholicUtilities::get_option('api_key');
1006
+ if (ShareaholicUtilities::has_accepted_terms_of_service() && !empty($api_key)) {
1007
  if (in_array($post->post_status, array('draft', 'pending', 'auto-draft'))) {
1008
  // Get the correct permalink for a draft
1009
  $my_post = clone $post;