Version Description
- Bugfix: fixed "Cannot use object of type WP_Error"
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 6.1.3.8 |
Comparing to | |
See all releases |
Code changes from version 6.1.3.7 to 6.1.3.8
- readme.txt +4 -1
- sexy-bookmarks.php +10 -6
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, 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.5.1
|
6 |
-
Stable tag: 6.1.3.
|
7 |
|
8 |
Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
|
9 |
|
@@ -127,6 +127,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
127 |
|
128 |
== Changelog ==
|
129 |
|
|
|
|
|
|
|
130 |
= 6.1.3.7 =
|
131 |
* [Bugfix](http://wordpress.org/support/topic/big-issue-with-css): More robust CSS
|
132 |
|
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, 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.5.1
|
6 |
+
Stable tag: 6.1.3.8
|
7 |
|
8 |
Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
|
9 |
|
127 |
|
128 |
== Changelog ==
|
129 |
|
130 |
+
= 6.1.3.8 =
|
131 |
+
* Bugfix: fixed "Cannot use object of type WP_Error"
|
132 |
+
|
133 |
= 6.1.3.7 =
|
134 |
* [Bugfix](http://wordpress.org/support/topic/big-issue-with-css): More robust CSS
|
135 |
|
sexy-bookmarks.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Shareaholic | share buttons, analytics, related posts
|
4 |
Plugin URI: https://shareaholic.com/publishers/
|
5 |
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=sexy-bookmarks.php">configuration panel</a> for more settings.
|
6 |
-
Version: 6.1.3.
|
7 |
Author: Shareaholic
|
8 |
Author URI: https://shareaholic.com
|
9 |
Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
@@ -14,7 +14,7 @@ Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
|
14 |
* @desc Define Plugin version
|
15 |
*/
|
16 |
|
17 |
-
define('SHRSB_vNum','6.1.3.
|
18 |
|
19 |
|
20 |
/*
|
@@ -147,7 +147,7 @@ require_once 'includes/shrsb_classicbookmarks_page.php'; // Classic Bookmarks g
|
|
147 |
|
148 |
|
149 |
function shr_upgrade_routine() {
|
150 |
-
if(SHRSB_vNum === '6.1.3.
|
151 |
global $shrsb_recommendations;
|
152 |
if($shrsb_recommendations['recommendations'] !== '1') {
|
153 |
$shrsb_recommendations['recommendations'] = '1';
|
@@ -216,14 +216,18 @@ function shr_sendTrackingEvent($event_name = 'Default', $extra_params = NULL) {
|
|
216 |
// kicks off Recommendations
|
217 |
function shr_recommendationsStatus() {
|
218 |
$recommendationsStatusURL = "https://www.shareaholic.com/v2/recommendations/status?url=".home_url();
|
219 |
-
$response = wp_remote_post($recommendationsStatusURL);
|
220 |
-
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
|
223 |
function shr_recommendationsStatus_code() {
|
224 |
$recommendationsStatusURL_result = shr_recommendationsStatus();
|
225 |
$obj = json_decode($recommendationsStatusURL_result, true);
|
226 |
-
if ($obj['code'] == 200){
|
227 |
if ($obj['data'][0]['status_code'] < 3) {
|
228 |
return "processing";
|
229 |
} else {
|
3 |
Plugin Name: Shareaholic | share buttons, analytics, related posts
|
4 |
Plugin URI: https://shareaholic.com/publishers/
|
5 |
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=sexy-bookmarks.php">configuration panel</a> for more settings.
|
6 |
+
Version: 6.1.3.8
|
7 |
Author: Shareaholic
|
8 |
Author URI: https://shareaholic.com
|
9 |
Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
14 |
* @desc Define Plugin version
|
15 |
*/
|
16 |
|
17 |
+
define('SHRSB_vNum','6.1.3.8');
|
18 |
|
19 |
|
20 |
/*
|
147 |
|
148 |
|
149 |
function shr_upgrade_routine() {
|
150 |
+
if(SHRSB_vNum === '6.1.3.8' ) {
|
151 |
global $shrsb_recommendations;
|
152 |
if($shrsb_recommendations['recommendations'] !== '1') {
|
153 |
$shrsb_recommendations['recommendations'] = '1';
|
216 |
// kicks off Recommendations
|
217 |
function shr_recommendationsStatus() {
|
218 |
$recommendationsStatusURL = "https://www.shareaholic.com/v2/recommendations/status?url=".home_url();
|
219 |
+
$response = wp_remote_post($recommendationsStatusURL, array('sslverify'=>false));
|
220 |
+
if(is_array($response) && array_key_exists('body', $response)){
|
221 |
+
return $response['body'];
|
222 |
+
} else {
|
223 |
+
return false;
|
224 |
+
}
|
225 |
}
|
226 |
|
227 |
function shr_recommendationsStatus_code() {
|
228 |
$recommendationsStatusURL_result = shr_recommendationsStatus();
|
229 |
$obj = json_decode($recommendationsStatusURL_result, true);
|
230 |
+
if (is_array($obj) && $obj['code'] == 200){
|
231 |
if ($obj['data'][0]['status_code'] < 3) {
|
232 |
return "processing";
|
233 |
} else {
|