WordPress Share Buttons Plugin – AddThis - Version 1.6.2

Version Description

Fixed name conflict with get_wp_version() (renamed to addthis_get_wp_version()), affecting users with the k2 theme.

Download this release

Release Info

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

Code changes from version 1.6.1 to 1.6.2

Files changed (2) hide show
  1. addthis_social_widget.php +7 -7
  2. readme.txt +32 -19
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.1
31
  *
32
  * Author: The AddThis Team
33
  * Author URI: http://www.addthis.com
@@ -81,7 +81,7 @@ function cuid()
81
  /**
82
  * Returns major.minor WordPress version.
83
  */
84
- function get_wp_version() {
85
  return (float)substr(get_bloginfo('version'),0,3);
86
  }
87
 
@@ -187,7 +187,7 @@ function addthis_init()
187
  {
188
  global $addthis_settings;
189
 
190
- if (get_wp_version() >= 2.7) {
191
  if ( is_admin() ) {
192
  add_action( 'admin_init', 'register_addthis_settings' );
193
  }
@@ -259,7 +259,7 @@ function addthis_init()
259
 
260
  add_action('widgets_init', 'addthis_widget_init');
261
 
262
- if (get_wp_version() >= 2.7 && $addthis_settings['showstats']) {
263
  add_action('wp_dashboard_setup', 'addthis_dashboard_init' );
264
  }
265
  }
@@ -405,7 +405,7 @@ function addthis_plugin_options_php4() {
405
  <form method="post" action="options.php">
406
  <?php
407
  // use the old-school settings style in older versions of wordpress
408
- if (get_wp_version() < 2.7) {
409
  wp_nonce_field('update-options');
410
  } else {
411
  settings_fields('addthis');
@@ -459,7 +459,7 @@ function addthis_plugin_options_php4() {
459
  <table class="form-table">
460
  <?php
461
  // We can only support the dashboard widget for WordPress 2.7+
462
- if (get_wp_version() >= 2.7) {
463
  ?>
464
  <tr>
465
  <th scope="row"><?php _e("Show stats in admin dashboard:", 'addthis_trans_domain' ); ?></th>
@@ -528,7 +528,7 @@ function addthis_plugin_options_php4() {
528
 
529
  <?php
530
  // use the old-school settings style in older versions of wordpress
531
- if (get_wp_version() < 2.7) {
532
  ?>
533
  <input type="hidden" name="action" value="update" />
534
  <input type="hidden" name="page_options" value="addthis_username,addthis_password,addthis_show_stats,addthis_style,addthis_sidebar_only,addthis_menu_type,addthis_showonpages,addthis_showoncats,addthis_showonhome,addthis_showonarchives,addthis_language,addthis_brand,addthis_options,addthis_header_background,addthis_header_color"/>
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.2
31
  *
32
  * Author: The AddThis Team
33
  * Author URI: http://www.addthis.com
81
  /**
82
  * Returns major.minor WordPress version.
83
  */
84
+ function addthis_get_wp_version() {
85
  return (float)substr(get_bloginfo('version'),0,3);
86
  }
87
 
187
  {
188
  global $addthis_settings;
189
 
190
+ if (addthis_get_wp_version() >= 2.7) {
191
  if ( is_admin() ) {
192
  add_action( 'admin_init', 'register_addthis_settings' );
193
  }
259
 
260
  add_action('widgets_init', 'addthis_widget_init');
261
 
262
+ if (addthis_get_wp_version() >= 2.7 && $addthis_settings['showstats']) {
263
  add_action('wp_dashboard_setup', 'addthis_dashboard_init' );
264
  }
265
  }
405
  <form method="post" action="options.php">
406
  <?php
407
  // use the old-school settings style in older versions of wordpress
408
+ if (addthis_get_wp_version() < 2.7) {
409
  wp_nonce_field('update-options');
410
  } else {
411
  settings_fields('addthis');
459
  <table class="form-table">
460
  <?php
461
  // We can only support the dashboard widget for WordPress 2.7+
462
+ if (addthis_get_wp_version() >= 2.7) {
463
  ?>
464
  <tr>
465
  <th scope="row"><?php _e("Show stats in admin dashboard:", 'addthis_trans_domain' ); ?></th>
528
 
529
  <?php
530
  // use the old-school settings style in older versions of wordpress
531
+ if (addthis_get_wp_version() < 2.7) {
532
  ?>
533
  <input type="hidden" name="action" value="update" />
534
  <input type="hidden" name="page_options" value="addthis_username,addthis_password,addthis_show_stats,addthis_style,addthis_sidebar_only,addthis_menu_type,addthis_showonpages,addthis_showoncats,addthis_showonhome,addthis_showonarchives,addthis_language,addthis_brand,addthis_options,addthis_header_background,addthis_header_color"/>
readme.txt CHANGED
@@ -3,31 +3,16 @@ Contributors: _mjk_
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.9.1
6
- Stable tag: 1.6.1
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
10
  == Description ==
11
- Get more traffic back to your site! With AddThis, your users can promote your content for you by sharing to over 200 of the most popular social networking and bookmarking sites (like Facebook, Twitter, Digg, StumbleUpon and MySpace), and by emailing it to their friends. 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.
12
 
13
- = WHY USE ADDTHIS? =
14
- 1. Ease of use. AddThis is easy to install, customize and localize. We've worked hard to make it the simplest, most recognized sharing tool on the internet.
15
- 2. Performance. The AddThis menu code is tiny and fast. We constantly optimize its behavior and design to make sharing a snap.
16
- 3. Peace of mind. AddThis gathers the best services on the internet so you don't have to, and backs them up with industrial strength analytics, code caching, active tech support and a thriving developer community.
17
- 4. Flexibility. AddThis can be customized via API, and served securely via SSL. You can roll your own sharing toolbars with our toolbox. Share just about anything, anywhere -- your way.
18
- 5. Global reach. AddThis sends content to more than 50 sharing services over 20 billion times a month in 20+ languages, to over half a billion unique users in countries all over the world.
19
- 6. It's free!
20
-
21
- = OVER 200 SUPPORTED SERVICES =
22
- We currently support over 200 services, from email and blogging platforms to social networks and news aggregators, and we add new services every month. Want to know if your favorite service is supported? This list is accurate up to the minute: <a href="http://www.addthis.com/services">http://www.addthis.com/services</a>.
23
-
24
- = ADDITIONAL FEATURES =
25
- 1. Email right from the page and import your address book from Gmail, Hotmail and Yahoo without opening another application or window
26
- 2. Bookmark in your browser
27
- 3. Print
28
 
29
- = WHO ELSE USES ADDTHIS? =
30
- Over 500,000 sites have installed AddThis. With over half a billion unique users, AddThis is helping share content all over the world, in more than sixty languages. You might be surprised who's sharing their website using AddThis--<a href="http://addthis.com/features#partners">here are just a few</a>.
31
 
32
  == Installation ==
33
 
@@ -51,6 +36,20 @@ No. You only need to create an account if you want to see how your users are sha
51
 
52
  If you've turned on the drop-down menu (which is recommended, as it's been shown to increase sharing/bookmarking rates), JavaScript must be enabled. We load the actual interface via JavaScript at run-time, which allows us to upgrade the core functionality of the menu itself automatically everywhere.
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  == Screenshots ==
55
 
56
  1. The button on a sample post.
@@ -62,3 +61,17 @@ If you've turned on the drop-down menu (which is recommended, as it's been shown
62
  == PHP Version ==
63
 
64
  PHP 5+ is preferred; PHP 4 is supported.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.9.1
6
+ Stable tag: 1.6.2
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
10
  == Description ==
11
+ Help your visitor promote your site! The AddThis Social Bookmarking Widget allows your users to bookmark your site easily with over 200 popular <a href="http://www.addthis.com/services">services</a>, and to share it with friends via email. Our button is small, unobtrusive, quick to load and recognized all over the web.
12
 
13
+ 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
+ Over 500,000 sites have installed AddThis. Join us!
 
16
 
17
  == Installation ==
18
 
36
 
37
  If you've turned on the drop-down menu (which is recommended, as it's been shown to increase sharing/bookmarking rates), JavaScript must be enabled. We load the actual interface via JavaScript at run-time, which allows us to upgrade the core functionality of the menu itself automatically everywhere.
38
 
39
+ = Why use AddThis? =
40
+ 1. Ease of use. AddThis is easy to install, customize and localize. We've worked hard to make it the simplest, most recognized sharing tool on the internet.
41
+ 1. Performance. The AddThis menu code is tiny and fast. We constantly optimize its behavior and design to make sharing a snap.
42
+ 1. Peace of mind. AddThis gathers the best services on the internet so you don't have to, and backs them up with industrial strength analytics, code caching, active tech support and a thriving developer community.
43
+ 1. Flexibility. AddThis can be customized via API, and served securely via SSL. You can roll your own sharing toolbars with our toolbox. Share just about anything, anywhere -- your way.
44
+ 1. Global reach. AddThis sends content to more than 50 sharing services over 20 billion times a month in 20+ languages, to over half a billion unique users in countries all over the world.
45
+ 1. It's free!
46
+
47
+ = Who else uses AddThis? =
48
+ Over 500,000 sites have installed AddThis. With over half a billion unique users, AddThis is helping share content all over the world, in more than sixty languages. You might be surprised who's sharing their website using AddThis--<a href="http://addthis.com/features#partners">here are just a few</a>.
49
+
50
+ = What services does AddThis support? =
51
+ We currently support over 200 services, from email and blogging platforms to social networks and news aggregators, and we add new services every month. Want to know if your favorite service is supported? This list is accurate up to the minute: <a href="http://www.addthis.com/services">http://www.addthis.com/services</a>.
52
+
53
  == Screenshots ==
54
 
55
  1. The button on a sample post.
61
  == PHP Version ==
62
 
63
  PHP 5+ is preferred; PHP 4 is supported.
64
+
65
+ == Changelog ==
66
+
67
+ = 1.6.2 =
68
+ Fixed name conflict with get_wp_version() (renamed to addthis_get_wp_version()), affecting users with the k2 theme.
69
+
70
+ = 1.6.1 =
71
+ Fixed nondeterministic bug with the_title(), causing the title to occasionally appear in posts.
72
+
73
+ = 1.6.0 =
74
+ * Added <a href="http://addthis.com/toolbox">toolbox</a> support
75
+ For WP 2.7+ only:
76
+ * Added support for displaying sharing analytics to WordPress dashboard
77
+