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

Version Description

  • Bugfix: Check for array
Download this release

Release Info

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

Code changes from version 7.0.5.0 to 7.0.5.1

Files changed (3) hide show
  1. readme.txt +8 -1
  2. shareaholic.php +3 -3
  3. utilities.php +10 -3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.7.1
6
- Stable tag: 7.0.5.0
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -148,6 +148,10 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
148
 
149
  == Changelog ==
150
 
 
 
 
 
151
  = 7.0.5.0 =
152
  * Related Content
153
  * New or modified posts are now automatically updated in your Shareaholic Related Content index within an hour!
@@ -972,6 +976,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
972
 
973
  == Upgrade Notice ==
974
 
 
 
 
975
  = 7.0.5.0 =
976
  New or modified posts are now automatically updated in your Shareaholic Related Content index within an hour!
977
 
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.7.1
6
+ Stable tag: 7.0.5.1
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
148
 
149
  == Changelog ==
150
 
151
+ = 7.0.5.1 =
152
+ * [Bugfix](http://wordpress.org/support/topic/new-updated-shareaholic-not-working): Check for array
153
+
154
+
155
  = 7.0.5.0 =
156
  * Related Content
157
  * New or modified posts are now automatically updated in your Shareaholic Related Content index within an hour!
976
 
977
  == Upgrade Notice ==
978
 
979
+ = 7.0.5.1 =
980
+ Bug fixes
981
+
982
  = 7.0.5.0 =
983
  New or modified posts are now automatically updated in your Shareaholic Related Content index within an hour!
984
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 7.0.5.0
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
- Version: 7.0.5.0
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
@@ -54,7 +54,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
54
  class Shareaholic {
55
  const URL = 'https://shareaholic.com';
56
  const URL_CM = 'https://cm.shareaholic.com';
57
- const VERSION = '7.0.5.0';
58
 
59
  /**
60
  * Starts off as false so that ::get_instance() returns
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 7.0.5.1
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
+ Version: 7.0.5.1
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
54
  class Shareaholic {
55
  const URL = 'https://shareaholic.com';
56
  const URL_CM = 'https://cm.shareaholic.com';
57
+ const VERSION = '7.0.5.1';
58
 
59
  /**
60
  * Starts off as false so that ::get_instance() returns
utilities.php CHANGED
@@ -674,11 +674,18 @@ class ShareaholicUtilities {
674
  * @return bool
675
  */
676
  public static function should_notify_cm() {
 
 
 
677
  $settings = ShareaholicUtilities::get_settings();
678
  $recommendations_settings = $settings["recommendations"];
679
 
680
- if (in_array("on", $recommendations_settings)) {
681
- return true;
 
 
 
 
682
  } else {
683
  return false;
684
  }
@@ -693,7 +700,7 @@ class ShareaholicUtilities {
693
  $post_permalink = get_permalink($post_id);
694
 
695
  if ($post_permalink != NULL) {
696
- $cm_single_page_job_url = Shareaholic::URL_CM . '/jobs/single_page';
697
  $payload = array (
698
  'args' => array (
699
  $post_permalink,
674
  * @return bool
675
  */
676
  public static function should_notify_cm() {
677
+ $settings = array();
678
+ $recommendations_settings = array();
679
+
680
  $settings = ShareaholicUtilities::get_settings();
681
  $recommendations_settings = $settings["recommendations"];
682
 
683
+ if (is_array($recommendations_settings)) {
684
+ if (in_array("on", $recommendations_settings)) {
685
+ return true;
686
+ } else {
687
+ return false;
688
+ }
689
  } else {
690
  return false;
691
  }
700
  $post_permalink = get_permalink($post_id);
701
 
702
  if ($post_permalink != NULL) {
703
+ $cm_single_page_job_url = Shareaholic::URL_CM . '/jobs/uber_single_page';
704
  $payload = array (
705
  'args' => array (
706
  $post_permalink,