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

Version Description

New Share and Follow Buttons! Plus compatability with WP Rocket.

Download this release

Release Info

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

Code changes from version 8.8.2 to 8.8.3

Files changed (3) hide show
  1. readme.txt +35 -8
  2. shareaholic.php +7 -4
  3. utilities.php +16 -1
readme.txt CHANGED
@@ -1,10 +1,11 @@
1
  === WordPress Share Buttons, Related Posts, Monetization - Shareaholic ===
2
  Contributors: shareaholic
3
- Tags: buttons, related posts, google analytics, share buttons, social sharing, image sharing, related content, woocommerce, typepad, amazon, analytics, arto, baidu, bitly, blogger, buffer, cookie compliance, cookie consent, delicious, digg, diigo, disqus, email button, eu cookie law, evernote, facebook, facebook sharing, fancy, fark, feedly, flipboard, floated share buttons, floating share buttons, follow buttons, GDPR, gmail, google bookmarks, google classroom, google plus, hootsuite, hotmail, houzz, inbound.org, instagram, instagram sharing, instapaper, izeby, kaboodle, kik, kindle, line, linkedin, livejournal, meneame, mister wong, mixi, odnoklassniki, box.net, onenote, pinboard.in, pinterest, pinterest sharing, plurk, pocket, printfriendly, recommendations, reddit, sexybookmarks, share buttons, share image, shareaholic, shareholic, sms, social bookmarking, social media, social plugin, social share buttons, spotify, stumbleupon, stumpedia, symphony, tinyurl, tumblr, twitter, viadeo, vk, wanelo, weheartit, weibo, whatsapp, wykop, xing, yahoo, yammer, ycombinator, hacker news, youtube, yummly, zillow
4
  Requires at least: 3.0
5
  Tested up to: 5.0
6
  Requires PHP: 5.2
7
- Stable tag: 8.8.2
 
8
 
9
  Consolidate plugins with a high-speed suite of social tools: social share buttons, related content, related posts, ad monetization & Google Analytics.
10
 
@@ -15,7 +16,7 @@ Shareaholic is the **world's leading suite of social, analytics, monetization, a
15
 
16
  Our plugin and suite of tools make it easy for any website — big or small — to engage and grow their traffic, market their content, gain insight, and monetize their audience. And it all lives in one simple dashboard. Built on lightweight JavaScript, our functionality is highly customizable, without hurting your page load speed. In fact, we’re recognized by WP Engine as being a [“Essential Speed Friendly Social Media & SEO Toolkit”](https://wpengine.com/solution-center/shareaholic-the-essential-social-media-toolkit/).
17
 
18
- Our single plugin combines the functionality of many social, content, and monetization plugins including: JetPack, Contextual Related Posts (CRP), Social Warfare, Yet Another Related Posts Plugin (YARPP), Shariff, AddThis, AddToAny, and many others.
19
 
20
  = Social Media Share Buttons =
21
 
@@ -159,9 +160,9 @@ Shareaholic is used all over the world. Our goal is to support Shareaholic in th
159
 
160
  == Social Platform Integrations ==
161
 
162
- * Social Follow Buttons: Facebook follow buttons, Twitter follow buttons, Instagram follow buttons, YouTube follow buttons, LinkedIn, Spotify, Google+, Pinterest follow buttons, Etsy, BuzzFeed, iTunes, Tumblr, Vimeo, eBay, 500px, about.me, Baidu, Behance, Better Business Bureau (BBB), Bloglovin, Disqus, Dribbble, Feedly, Flickr, Foursquare, Github, Google Classroom, Houzz, LinkedIn, LiveJournal, Odnoklassniki (OK), Polyvore, RSS, Skype, SlideShare, SoundCloud, Stack Overflow, StumbleUpon, Tripadvisor, Vine, VK, Yelp, Zillow
163
 
164
- * Social Share Buttons: Facebook share buttons, LinkedIn share buttons, Pinterest share buttons, Reddit share buttons, Skype share buttons, SMS share button, StumbleUpon share buttons, Tumblr share buttons, Twitter share buttons, WhatsApp share buttons, Amazon Kindle share buttons, Amazon share buttons, Amazon Wish List, AOL Mail, Arto, Baidu, Bit.ly, Blogger Post, Box, Buffer, Delicious, Digg, Diigo, Diigolet, Email This, Evernote, Facebook Send, Fancy, Fark, Flipboard share buttons, GMail share buttons, Google Bookmarks, Google Classroom, Google Mail, Google+, HootSuite share buttons, Houzz share buttons, Inbound.org, Instapaper, iZeby, Kaboodle, Kik, Line share buttons, LinkedIn share buttons, Mail, Meneame, Microsoft OneNote, Mister-Wong, Mixi, MSDN, Odnoklassniki (OK), Outlook, Pinboard.in, Pinterest, Plurk, Pocket share buttons, Print share buttons, PrintFriendly share buttons, Read Later share buttons, Reddit share buttons, Sina Weibo, Skype share buttons, SMS, Soup.io, Stumpedia, Symphony, Techmeme, TinyURL, TypePad Post, Viadeo, Vkontakte (VK), Wanelo, We Heart It, WhatsApp,Windows Live Favorites, WordPress share buttons, Wykop, Xing, Yahoo Bookmarks, Yahoo Messenger, Yahoo! Mail, Yammer, YC Hacker News, Yummly share buttons
165
 
166
  == Screenshots ==
167
 
@@ -248,6 +249,32 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
248
 
249
  == Changelog ==
250
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  = 8.8.2 (2018-08-08) =
252
  * Various [Related Posts](https://www.shareaholic.com/website-tools/related-content) enhancements
253
 
@@ -776,6 +803,9 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
776
 
777
  == Upgrade Notice ==
778
 
 
 
 
779
  = 8.8.2 =
780
  Various [Related Posts](https://www.shareaholic.com/website-tools/related-content) enhancements
781
 
@@ -849,6 +879,3 @@ Various bug fixes and enhancements
849
 
850
  = 8.1.0 =
851
  New Tools Badge! Introducing a brand new way to launch the Shareaholic Console without ever leaving your website! Contains quick-links to your site analytics, help center, and much more to help you manage your site with greater ease. If you'd rather hide this badge or change its location, you can do so from your settings. It is 100% configurable.
852
-
853
- = 8.0.1 =
854
- Version 8 is here bringing with it a brand new revamped and streamlined UI!
1
  === WordPress Share Buttons, Related Posts, Monetization - Shareaholic ===
2
  Contributors: shareaholic
3
+ Tags: buttons, related posts, google analytics, share buttons, social sharing, image sharing, related content, woocommerce, typepad, amazon, analytics, arto, baidu, bitly, blogger, buffer, cookie compliance, cookie consent, delicious, digg, diigo, disqus, email button, eu cookie law, evernote, facebook, facebook sharing, fancy, fark, feedly, flipboard, floated share buttons, floating share buttons, follow buttons, GDPR, gmail, google bookmarks, google classroom, google plus, hootsuite, hotmail, houzz, inbound.org, instagram, instagram sharing, instapaper, kik, kindle, line, linkedin, livejournal, meneame, mister wong, mix, mixi, odnoklassniki, box.net, onenote, pinboard.in, pinterest, pinterest sharing, plurk, pocket, printfriendly, recommendations, reddit, sexybookmarks, share buttons, share image, shareaholic, shareholic, sms, social bookmarking, social media, social plugin, social share buttons, spotify, stumbleupon, stumpedia, symphony, tinyurl, tumblr, twitter, viadeo, vk, wanelo, weheartit, weibo, whatsapp, wykop, xing, yahoo, yammer, ycombinator, hacker news, youtube, yummly, zillow
4
  Requires at least: 3.0
5
  Tested up to: 5.0
6
  Requires PHP: 5.2
7
+ Stable tag: 8.8.3
8
+
9
 
10
  Consolidate plugins with a high-speed suite of social tools: social share buttons, related content, related posts, ad monetization & Google Analytics.
11
 
16
 
17
  Our plugin and suite of tools make it easy for any website — big or small — to engage and grow their traffic, market their content, gain insight, and monetize their audience. And it all lives in one simple dashboard. Built on lightweight JavaScript, our functionality is highly customizable, without hurting your page load speed. In fact, we’re recognized by WP Engine as being a [“Essential Speed Friendly Social Media & SEO Toolkit”](https://wpengine.com/solution-center/shareaholic-the-essential-social-media-toolkit/).
18
 
19
+ Our single plugin combines the functionality of many social, content, and monetization plugins including: JetPack, Contextual Related Posts (CRP), Social Warfare, Tasty Pins, Yet Another Related Posts Plugin (YARPP), Shariff, AddThis, AddToAny, and many others.
20
 
21
  = Social Media Share Buttons =
22
 
160
 
161
  == Social Platform Integrations ==
162
 
163
+ * Social Follow Buttons: Facebook follow buttons, Twitter follow buttons, Instagram follow buttons, YouTube follow buttons, LinkedIn, Spotify, Google+, Pinterest follow buttons, Etsy, BuzzFeed, iTunes, Tumblr, Vimeo, eBay, 500px, about.me, Meetup, Patreon, Medium, Snapchat, Slack, Baidu, Behance, Better Business Bureau (BBB), Bloglovin, Disqus, Dribbble, Feedly, Flickr, Foursquare, Github, Google Classroom, Houzz, LinkedIn, LiveJournal, Odnoklassniki (OK), Polyvore, RSS, Skype, SlideShare, Strava, SoundCloud, Stack Overflow, StumbleUpon, Tripadvisor, Vine, VK, Yelp, Zillow
164
 
165
+ * Social Share Buttons: Facebook share buttons, LinkedIn share buttons, Pinterest share buttons, Reddit share buttons, Skype share buttons, SMS share button, StumbleUpon share buttons, Tumblr share buttons, Twitter share buttons, Telegram, Mix, WhatsApp share buttons, Amazon Kindle share buttons, Amazon share buttons, Amazon Wish List, AOL Mail, Arto, Baidu, Bit.ly, Blogger Post, Box, Buffer, Delicious, Digg, Diigo, Diigolet, Email This, Evernote, Facebook Send, Fancy, Fark, Flipboard share buttons, GMail share buttons, Google Bookmarks, Google Classroom, Google Mail, Google+, HootSuite share buttons, Houzz share buttons, Inbound.org, Instapaper, Kik, Line share buttons, LinkedIn share buttons, Mail, Meneame, Microsoft OneNote, Mister-Wong, Mixi, MSDN, Odnoklassniki (OK), Outlook, Pinboard.in, Pinterest, Plurk, Pocket share buttons, Print share buttons, PrintFriendly share buttons, Read Later share buttons, Reddit share buttons, Sina Weibo, Skype share buttons, SMS, Soup.io, Stumpedia, Symphony, Techmeme, TinyURL, TypePad Post, Viadeo, Vkontakte (VK), Wanelo, We Heart It, WhatsApp,Windows Live Favorites, WordPress share buttons, Wykop, Xing, Yahoo Bookmarks, Yahoo Messenger, Yahoo! Mail, Yammer, YC Hacker News, Yummly share buttons, Viber, Trello, Facebook Messenger
166
 
167
  == Screenshots ==
168
 
249
 
250
  == Changelog ==
251
 
252
+ = 8.8.3 (2018-09-24) =
253
+ * Enhancement: Compatability with WP Rocket
254
+ * New Share Buttons:
255
+ * Telegram button added
256
+ * Print icon added
257
+ * Facebook Messenger
258
+ * Mix (the new StumbleUpon)
259
+ * Viber
260
+ * Trello
261
+ * New Follow Buttons:
262
+ * Instagram button updated
263
+ * Stackoverflow button updated
264
+ * Slack
265
+ * Snapchat
266
+ * Patreon
267
+ * Medium
268
+ * Strava
269
+ * Meetup
270
+ * Share/Follow Buttons Archived:
271
+ * StumbleUpon
272
+ * Izeby
273
+ * Polyvore
274
+ * Kaboodle
275
+ * Bugfix: Related Posts Content Age Filter fixed
276
+ * Bugfix: Logo padding in Share and Follow Buttons fixed
277
+
278
  = 8.8.2 (2018-08-08) =
279
  * Various [Related Posts](https://www.shareaholic.com/website-tools/related-content) enhancements
280
 
803
 
804
  == Upgrade Notice ==
805
 
806
+ = 8.8.3 =
807
+ New Share and Follow Buttons! Plus compatability with WP Rocket.
808
+
809
  = 8.8.2 =
810
  Various [Related Posts](https://www.shareaholic.com/website-tools/related-content) enhancements
811
 
879
 
880
  = 8.1.0 =
881
  New Tools Badge! Introducing a brand new way to launch the Shareaholic Console without ever leaving your website! Contains quick-links to your site analytics, help center, and much more to help you manage your site with greater ease. If you'd rather hide this badge or change its location, you can do so from your settings. It is 100% configurable.
 
 
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 8.8.2
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related posts
11
  Plugin URI: https://www.shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Audience 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.8.2
14
  Author: Shareaholic
15
  Author URI: https://www.shareaholic.com
16
  Text Domain: shareaholic
@@ -62,7 +62,7 @@ if (!class_exists('Shareaholic')) {
62
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
 
65
- const VERSION = '8.8.2';
66
 
67
  /**
68
  * Starts off as false so that ::get_instance() returns
@@ -155,6 +155,9 @@ if (!class_exists('Shareaholic')) {
155
  // https://wordpress.org/support/topic/custom-post-type-exclude-issue?replies=10#post-3370550
156
  add_action('scui_external_hooks_remove', array($this, 'remove_apps'));
157
  add_action('scui_external_hooks_return', array($this, 'return_apps'));
 
 
 
158
  }
159
 
160
  public static function remove_apps() {
@@ -194,7 +197,7 @@ if (!class_exists('Shareaholic')) {
194
  */
195
  public function shareaholic_init() {
196
  ShareaholicUtilities::localize();
197
-
198
  if (ShareaholicUtilities::has_accepted_terms_of_service() &&
199
  isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
200
  ShareaholicUtilities::get_or_create_api_key();
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 8.8.3
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related posts
11
  Plugin URI: https://www.shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Audience 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.8.3
14
  Author: Shareaholic
15
  Author URI: https://www.shareaholic.com
16
  Text Domain: shareaholic
62
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
 
65
+ const VERSION = '8.8.3';
66
 
67
  /**
68
  * Starts off as false so that ::get_instance() returns
155
  // https://wordpress.org/support/topic/custom-post-type-exclude-issue?replies=10#post-3370550
156
  add_action('scui_external_hooks_remove', array($this, 'remove_apps'));
157
  add_action('scui_external_hooks_return', array($this, 'return_apps'));
158
+
159
+ // WP Rocket Compatability
160
+ add_filter('rocket_minify_excluded_external_js', array('ShareaholicUtilities', 'rocket_exclude_js') );
161
  }
162
 
163
  public static function remove_apps() {
197
  */
198
  public function shareaholic_init() {
199
  ShareaholicUtilities::localize();
200
+
201
  if (ShareaholicUtilities::has_accepted_terms_of_service() &&
202
  isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
203
  ShareaholicUtilities::get_or_create_api_key();
utilities.php CHANGED
@@ -709,7 +709,7 @@ class ShareaholicUtilities {
709
  $data,
710
  'json'
711
  );
712
-
713
  if ($response && preg_match('/20*/', $response['response']['code'])) {
714
  self::update_options(array(
715
  'api_key' => $response['body']['api_key'],
@@ -1300,6 +1300,21 @@ class ShareaholicUtilities {
1300
  }
1301
  }
1302
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1303
  /*
1304
  * Clears cache created by caching plugins like W3 Total Cache
1305
  *
709
  $data,
710
  'json'
711
  );
712
+
713
  if ($response && preg_match('/20*/', $response['response']['code'])) {
714
  self::update_options(array(
715
  'api_key' => $response['body']['api_key'],
1300
  }
1301
  }
1302
 
1303
+ /**
1304
+ * WP Rocket Compatability - Excludes Shareaholic scripts from JS minification, etc
1305
+ *
1306
+ * @param Array $excluded_external An array of JS hosts
1307
+ * @return Array the updated array of hosts
1308
+ */
1309
+ function rocket_exclude_js($excluded_external) {
1310
+ if (defined('WP_ROCKET_VERSION')) {
1311
+ $excluded_external[] = 'apps.shareaholic.com';
1312
+ $excluded_external[] = 'dsms0mj1bbhn4.cloudfront.net';
1313
+
1314
+ return $excluded_external;
1315
+ }
1316
+ }
1317
+
1318
  /*
1319
  * Clears cache created by caching plugins like W3 Total Cache
1320
  *