Version Description
- Bugfix: We fixed the code which displays the Facebook share count to accommodate Facebook's new data structure.
- Bugfix: Fixed server side share counts for Odnoklassniki
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.8.0.4 |
Comparing to | |
See all releases |
Code changes from version 7.8.0.3 to 7.8.0.4
- lib/social-share-counts/share_count.php +3 -2
- readme.txt +12 -91
- shareaholic.php +3 -3
- utilities.php +3 -3
lib/social-share-counts/share_count.php
CHANGED
@@ -85,11 +85,12 @@ abstract class ShareaholicShareCount {
|
|
85 |
'callback' => 'vk_count_callback',
|
86 |
),
|
87 |
'odnoklassniki' => array(
|
88 |
-
'url' => '
|
89 |
'method' => 'GET',
|
90 |
'timeout' => 1,
|
91 |
'callback' => 'odnoklassniki_count_callback',
|
92 |
),
|
|
|
93 |
'fancy' => array(
|
94 |
'url' => 'http://fancy.com/fancyit/count?ItemURL=%s',
|
95 |
'method' => 'GET',
|
@@ -176,7 +177,7 @@ abstract class ShareaholicShareCount {
|
|
176 |
return false;
|
177 |
}
|
178 |
$body = json_decode($response['body'], true);
|
179 |
-
return isset($body['
|
180 |
}
|
181 |
|
182 |
|
85 |
'callback' => 'vk_count_callback',
|
86 |
),
|
87 |
'odnoklassniki' => array(
|
88 |
+
'url' => 'https://connect.ok.ru/dk?st.cmd=extLike&uid=odklcnt0&ref=%s',
|
89 |
'method' => 'GET',
|
90 |
'timeout' => 1,
|
91 |
'callback' => 'odnoklassniki_count_callback',
|
92 |
),
|
93 |
+
|
94 |
'fancy' => array(
|
95 |
'url' => 'http://fancy.com/fancyit/count?ItemURL=%s',
|
96 |
'method' => 'GET',
|
177 |
return false;
|
178 |
}
|
179 |
$body = json_decode($response['body'], true);
|
180 |
+
return isset($body['share']['share_count']) ? intval($body['share']['share_count']) : false;
|
181 |
}
|
182 |
|
183 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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, google classroom, disqus, spotify, zillow, feedly, kik, line, livejournal, baidu
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 7.8.0.
|
7 |
|
8 |
World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
|
9 |
|
@@ -193,8 +193,13 @@ Please see here: [Shareaholic Helpdesk](http://support.shareaholic.com/hc/en-us)
|
|
193 |
Please see here: [Usage & Installation Instructions](http://support.shareaholic.com/hc/en-us/categories/200101476-WordPress-Plugin)
|
194 |
|
195 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
196 |
= 7.8.0.3 =
|
197 |
-
* Bugfix: Fix for Cloudflare
|
198 |
|
199 |
= 7.8.0.2 =
|
200 |
* Bugfix: Updated Social Counts library to be PHP7 compatible
|
@@ -1025,6 +1030,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
1025 |
|
1026 |
== Upgrade Notice ==
|
1027 |
|
|
|
|
|
|
|
1028 |
= 7.8.0.3 =
|
1029 |
* Bugfix: Fix for Cloudflare compatible
|
1030 |
|
@@ -1180,91 +1188,4 @@ Miscellaneous performance enhancements for Share Counts
|
|
1180 |
|
1181 |
= 7.4.0.0 =
|
1182 |
|
1183 |
-
Optional and all new server side Share Counts API for share counts for Google+, StumbleUpon, etc! You can toggle this option under the "Advanced Settings" section.
|
1184 |
-
|
1185 |
-
= 7.3.0.1 =
|
1186 |
-
Miscellaneous bug fixes and performance enhancements
|
1187 |
-
|
1188 |
-
= 7.3.0.0 =
|
1189 |
-
Lots of new features - including Floating Share Buttons and Shareable Images!
|
1190 |
-
|
1191 |
-
= 7.2.2.0 =
|
1192 |
-
New / updated translations for French (by Rozenn Dagorn), German (by Oliver Heinrich), Dutch (by Patrick Ruers) and Greek (by Takis Bouyouris)
|
1193 |
-
|
1194 |
-
= 7.2.1.0 =
|
1195 |
-
The Admin Bar is now configurable and we also fixed the Related Content data processing status indicator. Also includes miscellaneous plugin performance enhancements.
|
1196 |
-
|
1197 |
-
= 7.2.0.0 =
|
1198 |
-
New Admin Bar options + miscellaneous bug fixes and performance enhancements to Related Content
|
1199 |
-
|
1200 |
-
= 7.1.0.0 =
|
1201 |
-
Shareaholic API's now use endpoints with static IP's. [Instruction on allowing Shareaholic to work with your firewall](https://blog.shareaholic.com/shareaholic-hosting-faq/).
|
1202 |
-
|
1203 |
-
= 7.0.9.0 =
|
1204 |
-
Confirmed that Shareaholic works well with WordPress 3.8. Upgrade away!
|
1205 |
-
|
1206 |
-
= 7.0.8.0 =
|
1207 |
-
Miscellaneous bug fixes and performance enhancements
|
1208 |
-
|
1209 |
-
= 7.0.7.0 =
|
1210 |
-
Deleted posts are now automatically removed from your Shareaholic Content Index within an hour!
|
1211 |
-
|
1212 |
-
= 7.0.6.0 =
|
1213 |
-
Shareaholic Apps are now included on static front page displays
|
1214 |
-
|
1215 |
-
= 7.0.5.1 =
|
1216 |
-
Bug fixes
|
1217 |
-
|
1218 |
-
= 7.0.5.0 =
|
1219 |
-
New or modified posts are now automatically updated in your Shareaholic Content Index within an hour!
|
1220 |
-
|
1221 |
-
= 7.0.4.9 =
|
1222 |
-
Bugfixes and confirmed that everything is humming along with WordPress 3.7.1!
|
1223 |
-
|
1224 |
-
= 7.0.4.8 =
|
1225 |
-
Related Content now excludes attachments automatically. You can now also exclude *any* of your posts from Related Content via post and page metabox options.
|
1226 |
-
|
1227 |
-
= 7.0.4.7 =
|
1228 |
-
Support for additional Shareaholic content meta tags! More improvements for Related Content.
|
1229 |
-
|
1230 |
-
= 7.0.4.6 =
|
1231 |
-
Significant upgrade to keyword generation for Related Content. Additional fixes for those using Cloudflare.
|
1232 |
-
|
1233 |
-
= 7.0.4.5 =
|
1234 |
-
Enforce Internet Explorer compatibility mode to latest version available; fixes a lot of general issues with Internet Explorer. Recommended update.
|
1235 |
-
|
1236 |
-
= 7.0.4.3 =
|
1237 |
-
Added support for shareaholic:keywords meta tag for better Recommendations and Related Content matches
|
1238 |
-
|
1239 |
-
= 7.0.4.2 =
|
1240 |
-
Better debug prompts
|
1241 |
-
|
1242 |
-
= 7.0.4.1 =
|
1243 |
-
New "Server Connectivity" section added under "Advanced Settings"
|
1244 |
-
|
1245 |
-
= 7.0.3.6 =
|
1246 |
-
New "Vertical" theme for Related Content! Organized the "Advanced Settings" page and Shareaholic shortcode now support title, link and summary parameters.
|
1247 |
-
|
1248 |
-
= 7.0.3.5 =
|
1249 |
-
Language localizations and bugfixes.
|
1250 |
-
|
1251 |
-
= 7.0.3.4 =
|
1252 |
-
Fix for security vulnerability. Upgrade immediately.
|
1253 |
-
|
1254 |
-
= 7.0.3.3 =
|
1255 |
-
This is a highly recommended upgrade. Fixes issues of API timeouts and data-summary not being encoding correctly.
|
1256 |
-
|
1257 |
-
= 7.0.3.2 =
|
1258 |
-
This is a highly recommended upgrade. Fixes issues affecting users on smaller screens and includes performance improvements.
|
1259 |
-
|
1260 |
-
= 7.0.3.1 =
|
1261 |
-
This is a highly recommended upgrade. Should fix most, if not all, lingering issues related to share buttons and related content apps not showing on webpages.
|
1262 |
-
|
1263 |
-
= 7.0.3.0 =
|
1264 |
-
Lots of new features! You can now center, left and right align your share buttons, use custom headers, toggle the "more options" button, various bug fixes, performance improvements and more.
|
1265 |
-
|
1266 |
-
= 7.0.2.0 =
|
1267 |
-
As always, we're listening and working in all your feedback. This release represents a slew of updates based on a lot of user feedback. For Facebook sharing, sharers are now taken directly to Facebook, now access Share Button and Related Content settings without an (free) account, and much much more.
|
1268 |
-
|
1269 |
-
= 7.0.1.0 =
|
1270 |
-
* Huge update! Completely re-written from the ground up to be faster and with a new simple interface! Includes brand new Share button themes (including vertical share buttons!) and Related posts themes. Related Posts now come mobile optimized and responsive out of the box - Shareaholic automagically determines how many Related Posts to show given how much screen width it is given. You can now even customize your "You may also like" text and exclude URLs.
|
2 |
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, google classroom, disqus, spotify, zillow, feedly, kik, line, livejournal, baidu
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.6
|
6 |
+
Stable tag: 7.8.0.4
|
7 |
|
8 |
World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
|
9 |
|
193 |
Please see here: [Usage & Installation Instructions](http://support.shareaholic.com/hc/en-us/categories/200101476-WordPress-Plugin)
|
194 |
|
195 |
== Changelog ==
|
196 |
+
|
197 |
+
= 7.8.0.4 =
|
198 |
+
* Bugfix: We fixed the code which displays the Facebook share count to accommodate Facebook's new data structure.
|
199 |
+
* Bugfix: Fixed server side share counts for Odnoklassniki
|
200 |
+
|
201 |
= 7.8.0.3 =
|
202 |
+
* Bugfix: Fix for Cloudflare compatibility
|
203 |
|
204 |
= 7.8.0.2 =
|
205 |
* Bugfix: Updated Social Counts library to be PHP7 compatible
|
1030 |
|
1031 |
== Upgrade Notice ==
|
1032 |
|
1033 |
+
= 7.8.0.4 =
|
1034 |
+
Various Share Count updates
|
1035 |
+
|
1036 |
= 7.8.0.3 =
|
1037 |
* Bugfix: Fix for Cloudflare compatible
|
1038 |
|
1188 |
|
1189 |
= 7.4.0.0 =
|
1190 |
|
1191 |
+
Optional and all new server side Share Counts API for share counts for Google+, StumbleUpon, etc! You can toggle this option under the "Advanced Settings" section.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.8.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: 7.8.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.8.0.
|
67 |
|
68 |
/**
|
69 |
* Starts off as false so that ::get_instance() returns
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.8.0.4
|
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: 7.8.0.4
|
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.8.0.4';
|
67 |
|
68 |
/**
|
69 |
* Starts off as false so that ::get_instance() returns
|
utilities.php
CHANGED
@@ -1311,11 +1311,11 @@ class ShareaholicUtilities {
|
|
1311 |
return 'FAIL';
|
1312 |
}
|
1313 |
|
1314 |
-
// Did it return at least
|
1315 |
$has_majority_services = count(array_keys($response['body']['data'])) >= 6 ? true : false;
|
1316 |
$has_important_services = true;
|
1317 |
-
// Does it have counts for
|
1318 |
-
foreach (array('
|
1319 |
if (!isset($response['body']['data'][$service]) || !is_numeric($response['body']['data'][$service])) {
|
1320 |
$has_important_services = false;
|
1321 |
}
|
1311 |
return 'FAIL';
|
1312 |
}
|
1313 |
|
1314 |
+
// Did it return at least 6 services?
|
1315 |
$has_majority_services = count(array_keys($response['body']['data'])) >= 6 ? true : false;
|
1316 |
$has_important_services = true;
|
1317 |
+
// Does it have counts for linkedin, pinterest?
|
1318 |
+
foreach (array('linkedin', 'pinterest') as $service) {
|
1319 |
if (!isset($response['body']['data'][$service]) || !is_numeric($response['body']['data'][$service])) {
|
1320 |
$has_important_services = false;
|
1321 |
}
|