WordPress Share Buttons Plugin – AddThis - Version 5.0.11

Version Description

  • Fixing overwrite of $addThisConfig global to resolve more PHP errors where a function is called from a non-object
Download this release

Release Info

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

Code changes from version 5.0.10 to 5.0.11

AddThisWordPressSharingButtonsPlugin.php CHANGED
@@ -25,7 +25,7 @@ if (!class_exists('AddThisWordPressSharingButtonsPlugin')) {
25
  Class AddThisWordPressSharingButtonsPlugin {
26
  // implements AddThisWordPressPluginInterface {
27
 
28
- static $version = '5.0.10';
29
  static $settingsPageId = 'addthis_social_widget';
30
  static $name = "AddThis Sharing Buttons";
31
  static $productPrefix = 'wpp';
25
  Class AddThisWordPressSharingButtonsPlugin {
26
  // implements AddThisWordPressPluginInterface {
27
 
28
+ static $version = '5.0.11';
29
  static $settingsPageId = 'addthis_social_widget';
30
  static $name = "AddThis Sharing Buttons";
31
  static $productPrefix = 'wpp';
addthis_social_widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AddThis Sharing Buttons
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.0.10
7
  * Author: The AddThis Team
8
  * Author URI: http://www.addthis.com/
9
  * License: GPL2
@@ -1129,31 +1129,31 @@ if ($addthis_options['addthis_plugin_controls'] == "AddThis") {
1129
  return $link_text;
1130
  }
1131
 
1132
- $addThisConfigs = $addThisConfigs->getConfigs();
1133
  $styles = array_merge($addthis_styles, $addthis_new_styles);
1134
 
1135
  if ( has_excerpt()
1136
  && !is_attachment()
1137
- && isset($addThisConfigs['below'])
1138
- && $addThisConfigs['below'] == 'custom'
1139
  ) {
1140
- $options['size'] = $addThisConfigs['below_custom_size'];
1141
- $options['more'] = $addThisConfigs['below_custom_more'];
1142
 
1143
- if ($addThisConfigs['below_do_custom_services']) {
1144
- $options['services'] = $addThisConfigs['below_custom_services'];
1145
  }
1146
 
1147
- if ($addThisConfigs['below_do_custom_preferred']) {
1148
- $options['preferred'] = $addThisConfigs['below_custom_preferred'];
1149
  }
1150
 
1151
- $template = addthis_custom_toolbox($options);
1152
- } elseif ( isset($styles[$addThisConfigs['below']])
1153
  && has_excerpt()
1154
  && !is_attachment()
1155
  ) {
1156
- $template = $styles[$addThisConfigs['below']]['src'];
1157
  } else {
1158
  $template = '';
1159
  }
3
  * Plugin Name: AddThis Sharing Buttons
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.0.11
7
  * Author: The AddThis Team
8
  * Author URI: http://www.addthis.com/
9
  * License: GPL2
1129
  return $link_text;
1130
  }
1131
 
1132
+ $options = $addThisConfigs->getConfigs();
1133
  $styles = array_merge($addthis_styles, $addthis_new_styles);
1134
 
1135
  if ( has_excerpt()
1136
  && !is_attachment()
1137
+ && isset($options['below'])
1138
+ && $options['below'] == 'custom'
1139
  ) {
1140
+ $parsedOptions['size'] = $options['below_custom_size'];
1141
+ $newOptions['more'] = $options['below_custom_more'];
1142
 
1143
+ if ($options['below_do_custom_services']) {
1144
+ $parsedOptions['services'] = $options['below_custom_services'];
1145
  }
1146
 
1147
+ if ($options['below_do_custom_preferred']) {
1148
+ $parsedOptions['preferred'] = $options['below_custom_preferred'];
1149
  }
1150
 
1151
+ $template = addthis_custom_toolbox($parsedOptions);
1152
+ } elseif ( isset($styles[$options['below']])
1153
  && has_excerpt()
1154
  && !is_attachment()
1155
  ) {
1156
+ $template = $styles[$options['below']]['src'];
1157
  } else {
1158
  $template = '';
1159
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: abramsm, srijith.v, vipinss, dnrahamim, jgrodel, bradaddthiscom, m
3
  Tags: AddThis, addtoany, bookmark, bookmarking, email, e-mail, sharing buttons, share, share this, facebook, google+, pinterest, instagram, linkedin, whatsapp, social tools, website tools, twitter, content marketing, recommended content, conversion tool, subscription button, conversion tools, email tools, ecommerce tools, social marketing, personalization tools
4
  Requires at least: 3.0
5
  Tested up to: 4.2.2
6
- Stable tag: 5.0.10
7
 
8
  AddThis provides the best sharing tools to help you make your website smarter.
9
 
@@ -76,6 +76,9 @@ PHP 5+ is preferred; PHP 4 is supported.
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 5.0.10 =
80
  * Fixing bug where all checkboxes get unchecked on first settings page save
81
  * Fixing PHP error with getConfigs() on a non-object in addthis_social_widget.php on line 1086
@@ -358,6 +361,9 @@ Fixed nondeterministic bug with the_title(), causing the title to occasionally a
358
 
359
  == Upgrade Notice ==
360
 
 
 
 
361
  = 5.0.10 =
362
  * Fixing bug where all checkboxes get unchecked on first settings page save
363
  * Fixing PHP error with getConfigs() on a non-object in addthis_social_widget.php on line 1086
3
  Tags: AddThis, addtoany, bookmark, bookmarking, email, e-mail, sharing buttons, share, share this, facebook, google+, pinterest, instagram, linkedin, whatsapp, social tools, website tools, twitter, content marketing, recommended content, conversion tool, subscription button, conversion tools, email tools, ecommerce tools, social marketing, personalization tools
4
  Requires at least: 3.0
5
  Tested up to: 4.2.2
6
+ Stable tag: 5.0.11
7
 
8
  AddThis provides the best sharing tools to help you make your website smarter.
9
 
76
 
77
  == Changelog ==
78
 
79
+ = 5.0.11 =
80
+ * Fixing overwrite of $addThisConfig global to resolve more PHP errors where a function is called from a non-object
81
+
82
  = 5.0.10 =
83
  * Fixing bug where all checkboxes get unchecked on first settings page save
84
  * Fixing PHP error with getConfigs() on a non-object in addthis_social_widget.php on line 1086
361
 
362
  == Upgrade Notice ==
363
 
364
+ = 5.0.11 =
365
+ * Fixing overwrite of $addThisConfig global to resolve more PHP errors where a function is called from a non-object
366
+
367
  = 5.0.10 =
368
  * Fixing bug where all checkboxes get unchecked on first settings page save
369
  * Fixing PHP error with getConfigs() on a non-object in addthis_social_widget.php on line 1086