Version Description
- Increased cURL timeout to prevent API timeouts
- Namespaced Share Buttons CSS more so as to prevent potential conflicts with other plugins
- Bugfix: Resolved issue where data-summary was not encoding correctly
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.0.3.3 |
Comparing to | |
See all releases |
Code changes from version 7.0.3.2 to 7.0.3.3
- curl.php +4 -2
- public.php +2 -2
- readme.txt +11 -3
- shareaholic.php +4 -4
curl.php
CHANGED
@@ -63,8 +63,9 @@ class ShareaholicCurl {
|
|
63 |
ShareaholicUtilities::log($data_type);
|
64 |
ShareaholicUtilities::log($method);
|
65 |
ShareaholicUtilities::log('-----------------');
|
|
|
66 |
if ($method == 'GET') {
|
67 |
-
$response = wp_remote_get($url, array('body' => $data, 'sslverify'=>false));
|
68 |
} elseif ($method == 'POST') {
|
69 |
$request = array();
|
70 |
if ($data_type == 'json') {
|
@@ -77,6 +78,7 @@ class ShareaholicCurl {
|
|
77 |
}
|
78 |
$request['headers']['Accept'] = 'application/json';
|
79 |
$request['sslverify'] = false;
|
|
|
80 |
$response = wp_remote_post($url, $request);
|
81 |
}
|
82 |
|
@@ -84,7 +86,7 @@ class ShareaholicCurl {
|
|
84 |
$error_message = $response->get_error_message();
|
85 |
ShareaholicUtilities::log($error_message);
|
86 |
if (!$ignore_error) {
|
87 |
-
ShareaholicUtilities::log_event('CurlRequestFailure', array('error_message' => $error_message));
|
88 |
}
|
89 |
return false;
|
90 |
}
|
63 |
ShareaholicUtilities::log($data_type);
|
64 |
ShareaholicUtilities::log($method);
|
65 |
ShareaholicUtilities::log('-----------------');
|
66 |
+
$timeout = 10;
|
67 |
if ($method == 'GET') {
|
68 |
+
$response = wp_remote_get($url, array('body' => $data, 'sslverify'=>false, 'timeout'=> $timeout));
|
69 |
} elseif ($method == 'POST') {
|
70 |
$request = array();
|
71 |
if ($data_type == 'json') {
|
78 |
}
|
79 |
$request['headers']['Accept'] = 'application/json';
|
80 |
$request['sslverify'] = false;
|
81 |
+
$request['timeout'] = $timeout;
|
82 |
$response = wp_remote_post($url, $request);
|
83 |
}
|
84 |
|
86 |
$error_message = $response->get_error_message();
|
87 |
ShareaholicUtilities::log($error_message);
|
88 |
if (!$ignore_error) {
|
89 |
+
ShareaholicUtilities::log_event('CurlRequestFailure', array('error_message' => $error_message, 'url' => $url));
|
90 |
}
|
91 |
return false;
|
92 |
}
|
public.php
CHANGED
@@ -220,10 +220,10 @@ class ShareaholicPublic {
|
|
220 |
data-app='$app'
|
221 |
data-title='" . htmlspecialchars($post->post_title, ENT_QUOTES) . "'
|
222 |
data-link='" . get_permalink($post->ID) . "'
|
223 |
-
data-summary='" .
|
224 |
|
225 |
return trim(preg_replace('/\s+/', ' ', $canvas));
|
226 |
}
|
227 |
}
|
228 |
|
229 |
-
?>
|
220 |
data-app='$app'
|
221 |
data-title='" . htmlspecialchars($post->post_title, ENT_QUOTES) . "'
|
222 |
data-link='" . get_permalink($post->ID) . "'
|
223 |
+
data-summary='" . htmlspecialchars(strip_tags(strip_shortcodes($post->post_excerpt)), ENT_QUOTES) . "'></div>";
|
224 |
|
225 |
return trim(preg_replace('/\s+/', ' ', $canvas));
|
226 |
}
|
227 |
}
|
228 |
|
229 |
+
?>
|
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.2
|
6 |
-
Stable tag: 7.0.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 |
|
@@ -141,6 +141,11 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
141 |
|
142 |
== Changelog ==
|
143 |
|
|
|
|
|
|
|
|
|
|
|
144 |
= 7.0.3.2 =
|
145 |
* Adjusted the "get started" screen so it's visible on smaller screens
|
146 |
* Bugfix: Fixed Share Buttons not rendering with certain settings
|
@@ -901,11 +906,14 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
901 |
|
902 |
== Upgrade Notice ==
|
903 |
|
|
|
|
|
|
|
904 |
= 7.0.3.2 =
|
905 |
-
This is a
|
906 |
|
907 |
= 7.0.3.1 =
|
908 |
-
This is a
|
909 |
|
910 |
= 7.0.3.0 =
|
911 |
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.
|
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.2
|
6 |
+
Stable tag: 7.0.3.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 |
|
141 |
|
142 |
== Changelog ==
|
143 |
|
144 |
+
= 7.0.3.3 =
|
145 |
+
* Increased cURL timeout to prevent API timeouts
|
146 |
+
* Namespaced Share Buttons CSS more so as to prevent potential conflicts with other plugins
|
147 |
+
* Bugfix: Resolved issue where data-summary was not encoding correctly
|
148 |
+
|
149 |
= 7.0.3.2 =
|
150 |
* Adjusted the "get started" screen so it's visible on smaller screens
|
151 |
* Bugfix: Fixed Share Buttons not rendering with certain settings
|
906 |
|
907 |
== Upgrade Notice ==
|
908 |
|
909 |
+
= 7.0.3.3 =
|
910 |
+
This is a highly recommended upgrade. Fixes issues of API timeouts and data-summary not being encoding correctly.
|
911 |
+
|
912 |
= 7.0.3.2 =
|
913 |
+
This is a highly recommended upgrade. Fixes issues affecting users on smaller screens and includes performance improvements.
|
914 |
|
915 |
= 7.0.3.1 =
|
916 |
+
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.
|
917 |
|
918 |
= 7.0.3.0 =
|
919 |
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.
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main and first file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.0.3.
|
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.0.3.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
@@ -43,7 +43,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
|
|
43 |
*/
|
44 |
class Shareaholic {
|
45 |
const URL = 'https://shareaholic.com';
|
46 |
-
const VERSION = '7.0.3.
|
47 |
/**
|
48 |
* Starts off as false so that ::get_instance() returns
|
49 |
* a new instance.
|
@@ -67,7 +67,7 @@ class Shareaholic {
|
|
67 |
add_action('save_post', array('ShareaholicAdmin', 'save_post'));
|
68 |
add_action('admin_enqueue_scripts', array('ShareaholicAdmin', 'enqueue_scripts'));
|
69 |
add_action('admin_menu', array('ShareaholicAdmin', 'admin_menu'));
|
70 |
-
|
71 |
if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
|
72 |
add_action('admin_notices', array('ShareaholicAdmin', 'show_terms_of_service'));
|
73 |
}
|
3 |
* The main and first file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.0.3.3
|
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.0.3.3
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
43 |
*/
|
44 |
class Shareaholic {
|
45 |
const URL = 'https://shareaholic.com';
|
46 |
+
const VERSION = '7.0.3.3';
|
47 |
/**
|
48 |
* Starts off as false so that ::get_instance() returns
|
49 |
* a new instance.
|
67 |
add_action('save_post', array('ShareaholicAdmin', 'save_post'));
|
68 |
add_action('admin_enqueue_scripts', array('ShareaholicAdmin', 'enqueue_scripts'));
|
69 |
add_action('admin_menu', array('ShareaholicAdmin', 'admin_menu'));
|
70 |
+
|
71 |
if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
|
72 |
add_action('admin_notices', array('ShareaholicAdmin', 'show_terms_of_service'));
|
73 |
}
|