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

Version Description

  • Several performance upgrades to make Shareaholic EVEN FASTER!!

  • Performance Enhancement: Settings file is now loaded from a globally distributed CDN (Amazon), which will make Shareaholic faster on your site

  • Performance Enhancement: Added support for DNS-Prefetch and Preload which will make Shareaholic EVEN FASTER!!

Download this release

Release Info

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

Code changes from version 8.6.7 to 8.7.0

Files changed (4) hide show
  1. public.php +19 -1
  2. readme.txt +11 -1
  3. shareaholic.php +4 -3
  4. templates/script_tag.php +1 -0
public.php CHANGED
@@ -57,7 +57,25 @@ class ShareaholicPublic {
57
  self::script_tag();
58
  self::shareaholic_tags();
59
  self::draw_og_tags();
60
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  /**
63
  * Inserts the script code snippet into the head of the page
57
  self::script_tag();
58
  self::shareaholic_tags();
59
  self::draw_og_tags();
60
+ }
61
+
62
+ /**
63
+ * Inserts resource hints in </head> to speed up loading
64
+ */
65
+ public static function shareaholic_resource_hints($hints, $relation_type) {
66
+ if ('dns-prefetch' === $relation_type) {
67
+ if ($hints) {
68
+ array_push($hints,
69
+ '//apps.shareaholic.com',
70
+ '//grace.shareaholic.com',
71
+ '//analytics.shareaholic.com',
72
+ '//recs.shareaholic.com',
73
+ '//go.shareaholic.com'
74
+ );
75
+ }
76
+ }
77
+ return $hints;
78
+ }
79
 
80
  /**
81
  * Inserts the script code snippet into the head of the page
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: Social Tools, 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: 4.9
6
- Stable tag: 8.6.7
7
 
8
  Consolidate plugins with a high-speed suite of social tools: social share buttons, related content, related posts, ad monetization & Google Analytics.
9
 
@@ -225,6 +225,10 @@ The default Shareaholic thumbnail width is 640px with dynamic height and no crop
225
  Each time you change Shareaholic's thumbnail dimensions like this, you will probably want to have WordPress regenerate appropriate sized thumbnails for all of your images. We highly recommend the [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugin for this purpose.
226
 
227
  == Changelog ==
 
 
 
 
228
  = 8.6.7 (2018-05-19) =
229
  * Bugfix: Fixed bug where share buttons and other apps were showing up intermittently due to a race condition in the loading sequence
230
 
@@ -731,6 +735,12 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
731
  * Show Related Posts data status
732
 
733
  == Upgrade Notice ==
 
 
 
 
 
 
734
  = 8.6.7 =
735
  * Fixed bug where share buttons and other apps were showing up intermittently due to a race condition in the loading sequence
736
 
3
  Tags: Social Tools, 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: 4.9
6
+ Stable tag: 8.7.0
7
 
8
  Consolidate plugins with a high-speed suite of social tools: social share buttons, related content, related posts, ad monetization & Google Analytics.
9
 
225
  Each time you change Shareaholic's thumbnail dimensions like this, you will probably want to have WordPress regenerate appropriate sized thumbnails for all of your images. We highly recommend the [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugin for this purpose.
226
 
227
  == Changelog ==
228
+ = 8.7.0 (2018-06-04) =
229
+ * Performance Enhancement: Settings file is now loaded from a globally distributed CDN (Amazon), which will make Shareaholic faster on your site
230
+ * Performance Enhancement: Added support for DNS-Prefetch and Preload which will make Shareaholic EVEN FASTER!!
231
+
232
  = 8.6.7 (2018-05-19) =
233
  * Bugfix: Fixed bug where share buttons and other apps were showing up intermittently due to a race condition in the loading sequence
234
 
735
  * Show Related Posts data status
736
 
737
  == Upgrade Notice ==
738
+ = 8.7.0 =
739
+ * Several performance upgrades to make Shareaholic EVEN FASTER!!
740
+
741
+ * Performance Enhancement: Settings file is now loaded from a globally distributed CDN (Amazon), which will make Shareaholic faster on your site
742
+ * Performance Enhancement: Added support for DNS-Prefetch and Preload which will make Shareaholic EVEN FASTER!!
743
+
744
  = 8.6.7 =
745
  * Fixed bug where share buttons and other apps were showing up intermittently due to a race condition in the loading sequence
746
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 8.6.7
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related posts
11
  Plugin URI: https://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.6.7
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.6.7';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
@@ -107,6 +107,7 @@ if (!class_exists('Shareaholic')) {
107
  add_action('the_excerpt', array('ShareaholicPublic', 'draw_canvases'));
108
 
109
  add_action('wp_head', array('ShareaholicPublic', 'wp_head'), 6);
 
110
  add_shortcode('shareaholic', array('ShareaholicPublic', 'shortcode'));
111
 
112
  add_action('plugins_loaded', array($this, 'shareaholic_init'));
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 8.7.0
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related posts
11
  Plugin URI: https://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.7.0
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.7.0';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
107
  add_action('the_excerpt', array('ShareaholicPublic', 'draw_canvases'));
108
 
109
  add_action('wp_head', array('ShareaholicPublic', 'wp_head'), 6);
110
+ add_filter('wp_resource_hints', array('ShareaholicPublic', 'shareaholic_resource_hints'), 10, 2);
111
  add_shortcode('shareaholic', array('ShareaholicPublic', 'shortcode'));
112
 
113
  add_action('plugins_loaded', array($this, 'shareaholic_init'));
templates/script_tag.php CHANGED
@@ -1,4 +1,5 @@
1
  <!-- This site is powered by Shareaholic - https://shareaholic.com -->
 
2
  <script type='text/javascript' data-cfasync='false'>
3
  //<![CDATA[
4
  _SHR_SETTINGS = <?php echo json_encode($base_settings); ?>;
1
  <!-- This site is powered by Shareaholic - https://shareaholic.com -->
2
+ <link rel='preload' href='<?php echo ShareaholicUtilities::asset_url('assets/pub/shareaholic.js') ?>' as='script'>
3
  <script type='text/javascript' data-cfasync='false'>
4
  //<![CDATA[
5
  _SHR_SETTINGS = <?php echo json_encode($base_settings); ?>;