Version Description
- Bug fix: Issues with usernames/passwords with special characters
Download this release
Release Info
Developer | srijith.v |
Plugin | WordPress Share Buttons Plugin – AddThis |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.0.1
- addthis_social_widget.php +8 -8
- includes/addthis_addjs.php +1 -1
- readme.txt +10 -3
addthis_social_widget.php
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
* Plugin Name: AddThis Social Bookmarking Widget
|
24 |
* Plugin URI: http://www.addthis.com
|
25 |
* Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
|
26 |
-
* Version: 3.0
|
27 |
*
|
28 |
* Author: The AddThis Team
|
29 |
* Author URI: http://www.addthis.com/blog
|
@@ -46,8 +46,8 @@ function addthis_early(){
|
|
46 |
|
47 |
|
48 |
define( 'addthis_style_default' , 'fb_tw_p1_sc');
|
49 |
-
define( 'ADDTHIS_PLUGIN_VERSION' , '3.0');
|
50 |
-
define( 'ADDTHIS_PRODUCT_VERSION' , 'wpp-3.0');
|
51 |
define( 'ADDTHIS_ATVERSION', '300');
|
52 |
define( 'ADDTHIS_ATVERSION_MANUAL_UPDATE', -1);
|
53 |
define( 'ADDTHIS_ATVERSION_AUTO_UPDATE', 0);
|
@@ -76,7 +76,7 @@ $addthis_styles = array(
|
|
76 |
'plus' => array('img'=>'sm-plus.gif', 'w'=>16, 'h'=>16)
|
77 |
);
|
78 |
$addthis_options = get_option('addthis_settings');
|
79 |
-
$atversion = array_key_exists('atversion_reverted', $addthis_options) && $addthis_options['atversion_reverted'] == 1 ? $addthis_options['atversion'] : ADDTHIS_ATVERSION;
|
80 |
|
81 |
$addthis_new_styles = array(
|
82 |
|
@@ -282,7 +282,7 @@ function addthis_check_footer() {
|
|
282 |
*/
|
283 |
function cuid()
|
284 |
{
|
285 |
-
$base =
|
286 |
$cuid = hash_hmac('md5', $base, 'addthis');
|
287 |
return $cuid;
|
288 |
}
|
@@ -1573,9 +1573,9 @@ function validate_addthis_api_credentials()
|
|
1573 |
'credentialerror' => 'true', 'credentialmessage' => '');
|
1574 |
if ($_POST['addthis_username'] && $_POST['addthis_password'] && $_POST['addthis_profile']) {
|
1575 |
$url = 'https://api.addthis.com/analytics/1.0/pub/shares.json?'.
|
1576 |
-
'username=' . $_POST['addthis_username'].
|
1577 |
-
'&password=' . $_POST['addthis_password'].
|
1578 |
-
'&pubid=' . $_POST['addthis_profile'];
|
1579 |
$response = wp_remote_get($url);
|
1580 |
$credential_error = '✖ The username, password, and profile combination you entered is invalid.';
|
1581 |
$profile_error = '✖ Invalid AddThis profile ID';
|
23 |
* Plugin Name: AddThis Social Bookmarking Widget
|
24 |
* Plugin URI: http://www.addthis.com
|
25 |
* Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
|
26 |
+
* Version: 3.0.1
|
27 |
*
|
28 |
* Author: The AddThis Team
|
29 |
* Author URI: http://www.addthis.com/blog
|
46 |
|
47 |
|
48 |
define( 'addthis_style_default' , 'fb_tw_p1_sc');
|
49 |
+
define( 'ADDTHIS_PLUGIN_VERSION' , '3.0.1');
|
50 |
+
define( 'ADDTHIS_PRODUCT_VERSION' , 'wpp-3.0.1');
|
51 |
define( 'ADDTHIS_ATVERSION', '300');
|
52 |
define( 'ADDTHIS_ATVERSION_MANUAL_UPDATE', -1);
|
53 |
define( 'ADDTHIS_ATVERSION_AUTO_UPDATE', 0);
|
76 |
'plus' => array('img'=>'sm-plus.gif', 'w'=>16, 'h'=>16)
|
77 |
);
|
78 |
$addthis_options = get_option('addthis_settings');
|
79 |
+
$atversion = is_array($addthis_options) && array_key_exists('atversion_reverted', $addthis_options) && $addthis_options['atversion_reverted'] == 1 ? $addthis_options['atversion'] : ADDTHIS_ATVERSION;
|
80 |
|
81 |
$addthis_new_styles = array(
|
82 |
|
282 |
*/
|
283 |
function cuid()
|
284 |
{
|
285 |
+
$base = get_option('home');
|
286 |
$cuid = hash_hmac('md5', $base, 'addthis');
|
287 |
return $cuid;
|
288 |
}
|
1573 |
'credentialerror' => 'true', 'credentialmessage' => '');
|
1574 |
if ($_POST['addthis_username'] && $_POST['addthis_password'] && $_POST['addthis_profile']) {
|
1575 |
$url = 'https://api.addthis.com/analytics/1.0/pub/shares.json?'.
|
1576 |
+
'username=' . urlencode($_POST['addthis_username']).
|
1577 |
+
'&password=' . urlencode($_POST['addthis_password']).
|
1578 |
+
'&pubid=' . urlencode($_POST['addthis_profile']);
|
1579 |
$response = wp_remote_get($url);
|
1580 |
$credential_error = '✖ The username, password, and profile combination you entered is invalid.';
|
1581 |
$profile_error = '✖ Invalid AddThis profile ID';
|
includes/addthis_addjs.php
CHANGED
@@ -52,7 +52,7 @@ Class AddThis_addjs{
|
|
52 |
$this->atversion = array_key_exists('atversion_update_status', $options) && $options['atversion_update_status'] == ADDTHIS_ATVERSION_REVERTED ? $options['atversion'] : ADDTHIS_ATVERSION;
|
53 |
|
54 |
// set the cuid
|
55 |
-
$base =
|
56 |
$cuid = hash_hmac('md5', $base, 'addthis');
|
57 |
$this->_cuid = $cuid;
|
58 |
|
52 |
$this->atversion = array_key_exists('atversion_update_status', $options) && $options['atversion_update_status'] == ADDTHIS_ATVERSION_REVERTED ? $options['atversion'] : ADDTHIS_ATVERSION;
|
53 |
|
54 |
// set the cuid
|
55 |
+
$base = get_option('home');
|
56 |
$cuid = hash_hmac('md5', $base, 'addthis');
|
57 |
$this->_cuid = $cuid;
|
58 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: srijith.v, solchea, jorbin, _mjk_, addthis_paul, joesullivan
|
|
3 |
Tags: share, addthis, social, bookmark, sharing, bookmarking, widget,AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg,e-mail, email, Facebook, google bookmarks, google buzz, myspace,network, NewsVine, Reddit, Share, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz, pintrest, widget
|
4 |
Requires at least: 2.9
|
5 |
Tested up to: 3.4.2
|
6 |
-
Stable tag: 3.0
|
7 |
|
8 |
The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with over 330 popular services.
|
9 |
|
@@ -12,9 +12,9 @@ Get more traffic back to your site by installing the AddThis WordPress plugin. W
|
|
12 |
|
13 |
Optionally, sign up for a free AddThis.com account to see how your visitors are sharing your content: which services they're using for sharing, which content is shared the most, and more.
|
14 |
|
15 |
-
We also have plugins available for <a href='http://wordpress.org/extend/plugins/addthis-follow/'>
|
16 |
|
17 |
-
|
18 |
|
19 |
<a href="http://www.addthis.com/blog">AddThis Blog</a> | <a href="http://www.addthis.com/privacy">Privacy Policy</a>
|
20 |
|
@@ -78,6 +78,9 @@ In the screen options you can enable the AddThis meta box. Check the box and sa
|
|
78 |
PHP 5+ is preferred; PHP 4 is supported.
|
79 |
|
80 |
== Changelog ==
|
|
|
|
|
|
|
81 |
= 3.0 =
|
82 |
* UX changes in admin settings
|
83 |
* Credential verification in Admin settings. If AddThis account details are wrong it will be notified to user.
|
@@ -207,6 +210,10 @@ Fixed nondeterministic bug with the_title(), causing the title to occasionally a
|
|
207 |
|
208 |
|
209 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
210 |
= 3.0 =
|
211 |
Updated UI, AddThis account verification and bug fixes.
|
212 |
|
3 |
Tags: share, addthis, social, bookmark, sharing, bookmarking, widget,AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg,e-mail, email, Facebook, google bookmarks, google buzz, myspace,network, NewsVine, Reddit, Share, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz, pintrest, widget
|
4 |
Requires at least: 2.9
|
5 |
Tested up to: 3.4.2
|
6 |
+
Stable tag: 3.0.1
|
7 |
|
8 |
The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with over 330 popular services.
|
9 |
|
12 |
|
13 |
Optionally, sign up for a free AddThis.com account to see how your visitors are sharing your content: which services they're using for sharing, which content is shared the most, and more.
|
14 |
|
15 |
+
We also have plugins available for <a href='http://wordpress.org/extend/plugins/addthis-follow/'>increasing followers on social networks</a>, <a href='http://wordpress.org/extend/plugins/addthis-welcome/'>welcoming users based on social behavior</a>, and <a href='http://wordpress.org/extend/plugins/addthis-social-sign-in'>adding social authentication</a> to your WordPress blog.
|
16 |
|
17 |
+
Help make AddThis even better by taking this <a href='http://www.surveymonkey.com/s/53FDFRF'>short customer survey.</a>
|
18 |
|
19 |
<a href="http://www.addthis.com/blog">AddThis Blog</a> | <a href="http://www.addthis.com/privacy">Privacy Policy</a>
|
20 |
|
78 |
PHP 5+ is preferred; PHP 4 is supported.
|
79 |
|
80 |
== Changelog ==
|
81 |
+
= 3.0.1 =
|
82 |
+
* Bug fix: Issues with usernames/passwords with special characters
|
83 |
+
|
84 |
= 3.0 =
|
85 |
* UX changes in admin settings
|
86 |
* Credential verification in Admin settings. If AddThis account details are wrong it will be notified to user.
|
210 |
|
211 |
|
212 |
== Upgrade Notice ==
|
213 |
+
|
214 |
+
= 3.0.1 =
|
215 |
+
Bug fixes.
|
216 |
+
|
217 |
= 3.0 =
|
218 |
Updated UI, AddThis account verification and bug fixes.
|
219 |
|