WordPress Share Buttons Plugin – AddThis - Version 1.6.7

Version Description

  • Using wp_register_sidebar_widget() in WordPress installs that support it
Download this release

Release Info

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

Code changes from version 1.6.6 to 1.6.7

Files changed (2) hide show
  1. addthis_social_widget.php +9 -3
  2. readme.txt +5 -2
addthis_social_widget.php CHANGED
@@ -27,7 +27,7 @@ else return;
27
  * Plugin Name: AddThis Social Bookmarking Widget
28
  * Plugin URI: http://www.addthis.com
29
  * 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.
30
- * Version: 1.6.6
31
  *
32
  * Author: The AddThis Team
33
  * Author URI: http://www.addthis.com
@@ -279,8 +279,11 @@ function addthis_init()
279
 
280
  function addthis_widget_init()
281
  {
282
- if ( function_exists('register_sidebar_widget') )
 
 
283
  register_sidebar_widget('AddThis Widget', 'addthis_sidebar_widget');
 
284
  }
285
 
286
  function addthis_sidebar_widget($args)
@@ -320,7 +323,10 @@ function addthis_social_widget($content, $onSidebar = false, $url = null, $title
320
  $title = !is_null($title) ? $title : ($onSidebar ? get_bloginfo('title') : the_title('', '', false));
321
  $addthis_options = $addthis_settings['options'];
322
 
323
- $content .= "\n<!-- AddThis Button BEGIN -->\n".'<script type="text/javascript">'."\n//<!--\n";
 
 
 
324
 
325
  if (strlen($addthis_settings['customization']))
326
  {
27
  * Plugin Name: AddThis Social Bookmarking Widget
28
  * Plugin URI: http://www.addthis.com
29
  * 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.
30
+ * Version: 1.6.7
31
  *
32
  * Author: The AddThis Team
33
  * Author URI: http://www.addthis.com
279
 
280
  function addthis_widget_init()
281
  {
282
+ if ( function_exists('wp_register_sidebar_widget') ) {
283
+ wp_register_sidebar_widget('addthis-widget', 'AddThis Widget', 'addthis_sidebar_widget');
284
+ } else if ( function_exists('register_sidebar_widget') ) {
285
  register_sidebar_widget('AddThis Widget', 'addthis_sidebar_widget');
286
+ }
287
  }
288
 
289
  function addthis_sidebar_widget($args)
323
  $title = !is_null($title) ? $title : ($onSidebar ? get_bloginfo('title') : the_title('', '', false));
324
  $addthis_options = $addthis_settings['options'];
325
 
326
+ $content .= "\n<!-- AddThis Button BEGIN -->\n"
327
+ .'<script type="text/javascript">'
328
+ ."\n//<!--\n"
329
+ ."var addthis_product = 'wpp-250';\n";
330
 
331
  if (strlen($addthis_settings['customization']))
332
  {
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: _mjk_
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
- Tested up to: 2.9.2
6
- Stable tag: 1.6.6
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
@@ -63,6 +63,9 @@ We currently support over 295 services, from email and blogging platforms to soc
63
  PHP 5+ is preferred; PHP 4 is supported.
64
 
65
  == Changelog ==
 
 
 
66
  = 1.6.6 =
67
  * Fixed argument bug in 1.6.5
68
 
2
  Contributors: _mjk_
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
+ Tested up to: 3.0.1
6
+ Stable tag: 1.6.7
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
63
  PHP 5+ is preferred; PHP 4 is supported.
64
 
65
  == Changelog ==
66
+ = 1.6.7 =
67
+ * Using wp_register_sidebar_widget() in WordPress installs that support it
68
+
69
  = 1.6.6 =
70
  * Fixed argument bug in 1.6.5
71