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

Version Description

  • Bugfix: use different hook to avoid modifying headers after they are sent
Download this release

Release Info

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

Code changes from version 7.6.2.0 to 7.6.2.1

Files changed (3) hide show
  1. admin.php +9 -6
  2. readme.txt +7 -1
  3. shareaholic.php +4 -4
admin.php CHANGED
@@ -483,11 +483,14 @@ class ShareaholicAdmin {
483
  }
484
  }
485
 
486
- public static function permalink_notice() {
487
- $css_class = 'error';
488
- $message = 'WARNING: changing the permalink structure will reset the share counts for your pages.';
489
- echo "<div class='$css_class'><p style='font-weight: bold;'>";
490
- _e($message, 'Shareaholic');
491
- echo '</p></div>';
 
 
 
492
  }
493
  }
483
  }
484
  }
485
 
486
+ public static function admin_notices() {
487
+ global $pagenow;
488
+ if ($pagenow == 'options-permalink.php') {
489
+ $css_class = 'error';
490
+ $message = 'WARNING: changing the permalink structure will reset the share counts for your pages.';
491
+ echo "<div class='$css_class'><p style='font-weight: bold;'>";
492
+ _e($message, 'Shareaholic');
493
+ echo '</p></div>';
494
+ }
495
  }
496
  }
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
4
  Requires at least: 3.0
5
  Tested up to: 4.3
6
- Stable tag: 7.6.2.0
7
 
8
  The easiest, most effective way to grow your website traffic, effectively engage your audience, monetize, and gain insights for free.
9
 
@@ -170,6 +170,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
170
 
171
  == Changelog ==
172
 
 
 
 
173
  = 7.6.2.0 =
174
  * Enhancement: Show message to users in permalink section in regards to share counts
175
 
@@ -1222,6 +1225,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
1222
 
1223
  == Upgrade Notice ==
1224
 
 
 
 
1225
  = 7.6.2.0 =
1226
  * Enhancement: Show message to users in permalink section in regards to share counts
1227
 
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
4
  Requires at least: 3.0
5
  Tested up to: 4.3
6
+ Stable tag: 7.6.2.1
7
 
8
  The easiest, most effective way to grow your website traffic, effectively engage your audience, monetize, and gain insights for free.
9
 
170
 
171
  == Changelog ==
172
 
173
+ = 7.6.2.1 =
174
+ * Bugfix: use different hook to avoid modifying headers after they are sent
175
+
176
  = 7.6.2.0 =
177
  * Enhancement: Show message to users in permalink section in regards to share counts
178
 
1225
 
1226
  == Upgrade Notice ==
1227
 
1228
+ = 7.6.2.1 =
1229
+ * Bugfix: use different hook to avoid modifying headers after they are sent
1230
+
1231
  = 7.6.2.0 =
1232
  * Enhancement: Show message to users in permalink section in regards to share counts
1233
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 7.6.2.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.6.2.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.6.2.0';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
@@ -139,7 +139,7 @@ if (!class_exists('Shareaholic')) {
139
  add_action('update_option_permalink_structure', array('ShareaholicUtilities', 'notify_content_manager_sitemap'));
140
 
141
  // use the admin notice API
142
- add_action('load-options-permalink.php', array('ShareaholicAdmin', 'permalink_notice'));
143
  }
144
 
145
  /**
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 7.6.2.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.6.2.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.6.2.1';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
139
  add_action('update_option_permalink_structure', array('ShareaholicUtilities', 'notify_content_manager_sitemap'));
140
 
141
  // use the admin notice API
142
+ add_action('admin_notices', array('ShareaholicAdmin', 'admin_notices'));
143
  }
144
 
145
  /**