WordPress Share Buttons Plugin – AddThis - Version 5.3.3

Version Description

  • Fixing PHP Notice: Undefined variable: displaySidebar in AddThisConfigs.php on line 450
  • Replacing a silly use of mysql_real_escape_string in title field value sanitization of widgets with sanitize_text_field, for improved PHP7 support
Download this release

Release Info

Developer jgrodel
Plugin Icon 128x128 WordPress Share Buttons Plugin – AddThis
Version 5.3.3
Comparing to
See all releases

Code changes from version 5.3.2 to 5.3.3

AddThisConfigs.php CHANGED
@@ -411,10 +411,10 @@ if (!class_exists('AddThisConfigs')) {
411
  return $addThisLayersVariable;
412
  }
413
 
 
414
  if (!empty($this->configs['addthis_sidebar_enabled'])) {
415
  $templateType = _addthis_determine_template_type();
416
 
417
- $displaySidebar = false;
418
  if (is_string($templateType)) {
419
  $fieldList = $this->getFieldsForContentTypeSharingLocations($templateType, 'sidebar');
420
  $fieldName = $fieldList[0]['fieldName'];
411
  return $addThisLayersVariable;
412
  }
413
 
414
+ $displaySidebar = false;
415
  if (!empty($this->configs['addthis_sidebar_enabled'])) {
416
  $templateType = _addthis_determine_template_type();
417
 
 
418
  if (is_string($templateType)) {
419
  $fieldList = $this->getFieldsForContentTypeSharingLocations($templateType, 'sidebar');
420
  $fieldName = $fieldList[0]['fieldName'];
AddThisWordPressSharingButtonsPlugin.php CHANGED
@@ -25,7 +25,7 @@ if (!class_exists('AddThisWordPressSharingButtonsPlugin')) {
25
  Class AddThisWordPressSharingButtonsPlugin {
26
  // implements AddThisWordPressPluginInterface {
27
 
28
- static $version = '5.3.2';
29
  static $settingsPageId = 'addthis_social_widget';
30
  static $name = "Share Buttons by AddThis";
31
  static $productPrefix = 'wpp';
25
  Class AddThisWordPressSharingButtonsPlugin {
26
  // implements AddThisWordPressPluginInterface {
27
 
28
+ static $version = '5.3.3';
29
  static $settingsPageId = 'addthis_social_widget';
30
  static $name = "Share Buttons by AddThis";
31
  static $productPrefix = 'wpp';
addthis-widget.php CHANGED
@@ -108,7 +108,7 @@ class Addthis_Horizontal_Recommended_Content_Widget extends WP_Widget
108
  public function update($new_instance, $old_instance)
109
  {
110
  $new_instance['title'] = (! empty($new_instance['title'])) ?
111
- mysql_real_escape_string($new_instance['title'])
112
  : '';
113
  return $new_instance;
114
  }
@@ -214,7 +214,7 @@ class Addthis_Vertical_Recommended_Content_Widget extends WP_Widget
214
  public function update($new_instance, $old_instance)
215
  {
216
  $new_instance['title'] = (! empty($new_instance['title'])) ?
217
- mysql_real_escape_string($new_instance['title'])
218
  : '';
219
  return $new_instance;
220
  }
108
  public function update($new_instance, $old_instance)
109
  {
110
  $new_instance['title'] = (! empty($new_instance['title'])) ?
111
+ sanitize_text_field($new_instance['title'])
112
  : '';
113
  return $new_instance;
114
  }
214
  public function update($new_instance, $old_instance)
215
  {
216
  $new_instance['title'] = (! empty($new_instance['title'])) ?
217
+ sanitize_text_field($new_instance['title'])
218
  : '';
219
  return $new_instance;
220
  }
addthis_social_widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Share Buttons by AddThis
4
  * Plugin URI: http://www.addthis.com
5
  * Description: Use the AddThis suite of website tools which includes sharing, following, recommended content, and conversion tools to help you make your website smarter. With AddThis, you can see how your users are engaging with your content, provide a personalized experience for each user and encourage them to share, subscribe or follow.
6
- * Version: 5.3.2
7
  * Author: The AddThis Team
8
  * Author URI: http://www.addthis.com/
9
  * License: GPL2
3
  * Plugin Name: Share Buttons by AddThis
4
  * Plugin URI: http://www.addthis.com
5
  * Description: Use the AddThis suite of website tools which includes sharing, following, recommended content, and conversion tools to help you make your website smarter. With AddThis, you can see how your users are engaging with your content, provide a personalized experience for each user and encourage them to share, subscribe or follow.
6
+ * Version: 5.3.3
7
  * Author: The AddThis Team
8
  * Author URI: http://www.addthis.com/
9
  * License: GPL2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: abramsm, srijith.v, vipinss, dnrahamim, jgrodel, bradaddthiscom, m
3
  Tags: AddThis, share buttons, sharing buttons, share buttons plugin, plugin, widget, social buttons, social tools, Facebook, Twitter, LinkedIn, Pinterest, bookmark, bookmarking, email sharing, sharing, share, mobile, mobile sharing, mobile sharing buttons, sidebar, sharing sidebar
4
  Requires at least: 3.0
5
  Tested up to: 4.5
6
- Stable tag: 5.3.2
7
 
8
  AddThis Share Buttons help you to increase traffic to your website by getting more of your content shared on social media.
9
 
@@ -31,7 +31,6 @@ With the AddThis Share Buttons WordPress plugin, you get:
31
 
32
  * Position the toolbar at the top or bottom of your page
33
  * Turn on or off displayed share count
34
- * Specify the screen width when this tool should appear
35
 
36
  <a href="https://www.addthis.com/register">Sign up</a> and create a registered account with AddThis to access the AddThis mode for this plugin, which offers additional share button configurations and analytics via your AddThis dashboard. Analytics include your top performing content, services and tools.
37
 
@@ -112,6 +111,10 @@ In the screen options you can enable the AddThis meta box. Check the box and sav
112
 
113
  == Changelog ==
114
 
 
 
 
 
115
  = 5.3.2 =
116
  * Potential Yoast fix. <a href="mailto:help@addthis.com">Please let us know</a> if you still have issues with this plugin and Yoast after upgrading.
117
 
@@ -456,6 +459,9 @@ Fixed nondeterministic bug with the_title(), causing the title to occasionally a
456
 
457
  == Upgrade Notice ==
458
 
 
 
 
459
  = 5.3.2 =
460
  Potential Yoast fix. <a href="mailto:help@addthis.com">Please let us know</a> if you still have issues with this plugin and Yoast after upgrading.
461
 
3
  Tags: AddThis, share buttons, sharing buttons, share buttons plugin, plugin, widget, social buttons, social tools, Facebook, Twitter, LinkedIn, Pinterest, bookmark, bookmarking, email sharing, sharing, share, mobile, mobile sharing, mobile sharing buttons, sidebar, sharing sidebar
4
  Requires at least: 3.0
5
  Tested up to: 4.5
6
+ Stable tag: 5.3.3
7
 
8
  AddThis Share Buttons help you to increase traffic to your website by getting more of your content shared on social media.
9
 
31
 
32
  * Position the toolbar at the top or bottom of your page
33
  * Turn on or off displayed share count
 
34
 
35
  <a href="https://www.addthis.com/register">Sign up</a> and create a registered account with AddThis to access the AddThis mode for this plugin, which offers additional share button configurations and analytics via your AddThis dashboard. Analytics include your top performing content, services and tools.
36
 
111
 
112
  == Changelog ==
113
 
114
+ = 5.3.3 =
115
+ * Fixing PHP Notice: Undefined variable: displaySidebar in AddThisConfigs.php on line 450
116
+ * Replacing a silly use of mysql_real_escape_string in title field value sanitization of widgets with sanitize_text_field, for improved PHP7 support
117
+
118
  = 5.3.2 =
119
  * Potential Yoast fix. <a href="mailto:help@addthis.com">Please let us know</a> if you still have issues with this plugin and Yoast after upgrading.
120
 
459
 
460
  == Upgrade Notice ==
461
 
462
+ = 5.3.3 =
463
+ Fixing PHP Notice: Undefined variable: displaySidebar in AddThisConfigs.php on line 450. Replacing a silly use of mysql_real_escape_string in title field value sanitization of widgets with sanitize_text_field, for improved PHP7 support.
464
+
465
  = 5.3.2 =
466
  Potential Yoast fix. <a href="mailto:help@addthis.com">Please let us know</a> if you still have issues with this plugin and Yoast after upgrading.
467