AddToAny Share Buttons - Version 0.9.9.5.1

Version Description

Download this release

Release Info

Developer micropat
Plugin Icon 128x128 AddToAny Share Buttons
Version 0.9.9.5.1
Comparing to
See all releases

Code changes from version 0.9.9.5 to 0.9.9.5.1

Files changed (2) hide show
  1. README.txt +9 -4
  2. add-to-any.php +16 -6
README.txt CHANGED
@@ -1,15 +1,15 @@
1
  === AddToAny: Share/Bookmark/Email Button ===
2
  Contributors: micropat
3
- Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
4
  Requires at least: 2.0
5
  Tested up to: 3.0
6
- Stable tag: 0.9.9.5
7
 
8
  Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
9
 
10
  == Description ==
11
 
12
- Help readers **share**, **save**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Digg, Delicious, and over 100 more social bookmarking and sharing sites. The button comes with AddToAny's customizable **Smart Menu**, which **places the services visitors use at the top of the menu**, based on each visitor's browsing and usage history.
13
 
14
  <a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
15
 
@@ -167,7 +167,7 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
167
 
168
  == Screenshots ==
169
 
170
- 1. AddToAny Share/Save button, featuring the Open <a href="http://www.shareicon.com/">Share Icon</a>
171
  2. Drop-down menu that appears instantly when visitors use the share button
172
  3. E-mail tab, with direct links to the most popular web-based e-mailers' auto-filled Compose page, a web-based sender for use with any e-mail address, and a link for desktop email clients
173
  4. Settings panel
@@ -175,6 +175,11 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
178
  = .9.9.5 =
179
  * Important note: If you are using the AddToAny Subscribe plugin, be sure to update that plugin to version 9.8+
180
  * Faster menu initialization
1
  === AddToAny: Share/Bookmark/Email Button ===
2
  Contributors: micropat
3
+ Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
4
  Requires at least: 2.0
5
  Tested up to: 3.0
6
+ Stable tag: 0.9.9.5.1
7
 
8
  Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
9
 
10
  == Description ==
11
 
12
+ Help readers **share**, **save**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and over 100 more social bookmarking and sharing sites. The button comes with AddToAny's customizable **Smart Menu**, which **places the services visitors use at the top of the menu**, based on each visitor's browsing and usage history.
13
 
14
  <a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
15
 
167
 
168
  == Screenshots ==
169
 
170
+ 1. AddToAny Share/Save button, featuring the Open Share Icon
171
  2. Drop-down menu that appears instantly when visitors use the share button
172
  3. E-mail tab, with direct links to the most popular web-based e-mailers' auto-filled Compose page, a web-based sender for use with any e-mail address, and a link for desktop email clients
173
  4. Settings panel
175
 
176
  == Changelog ==
177
 
178
+ = .9.9.5.1 =
179
+ * Fixed issue with excerpts (JavaScript text output within excerpts since .9.9.5)
180
+ * Button(s) will now display below excerpts (per the fix above)
181
+ * Replaced depreciating add/remove action functions with synonymous filter functions
182
+
183
  = .9.9.5 =
184
  * Important note: If you are using the AddToAny Subscribe plugin, be sure to update that plugin to version 9.8+
185
  * Faster menu initialization
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: AddToAny: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .9.9.5
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -27,7 +27,7 @@ function A2A_SHARE_SAVE_textdomain() {
27
  $A2A_SHARE_SAVE_plugin_url_path.'/languages',
28
  $A2A_SHARE_SAVE_plugin_basename.'/languages');
29
  }
30
- add_action('init', 'A2A_SHARE_SAVE_textdomain');
31
 
32
  function A2A_SHARE_SAVE_link_vars($linkname = FALSE, $linkurl = FALSE) {
33
  global $post;
@@ -253,6 +253,12 @@ if (!function_exists('A2A_wp_footer_check')) {
253
  }
254
 
255
 
 
 
 
 
 
 
256
  function A2A_SHARE_SAVE_to_bottom_of_content($content) {
257
  $is_feed = is_feed();
258
 
@@ -317,7 +323,11 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
317
  return $content;
318
  }
319
 
320
- add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
 
 
 
 
321
 
322
 
323
  function A2A_SHARE_SAVE_button_css($no_style_tag) {
@@ -370,7 +380,7 @@ function A2A_SHARE_SAVE_button_css($no_style_tag) {
370
  }
371
 
372
  if (get_option('A2A_SHARE_SAVE_inline_css') != '-1') {
373
- add_action('wp_head', 'A2A_SHARE_SAVE_button_css');
374
  }
375
 
376
 
@@ -808,7 +818,7 @@ function A2A_SHARE_SAVE_admin_head() {
808
  }
809
  }
810
 
811
- add_action('admin_head', 'A2A_SHARE_SAVE_admin_head');
812
 
813
  function A2A_SHARE_SAVE_add_menu_link() {
814
  global $wp_version;
@@ -830,7 +840,7 @@ function A2A_SHARE_SAVE_add_menu_link() {
830
  }
831
  }
832
 
833
- add_action('admin_menu', 'A2A_SHARE_SAVE_add_menu_link');
834
 
835
  // Place in Settings Option List
836
  function A2A_SHARE_SAVE_actlinks( $links, $file ){
3
  Plugin Name: AddToAny: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9.9.5.1
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
27
  $A2A_SHARE_SAVE_plugin_url_path.'/languages',
28
  $A2A_SHARE_SAVE_plugin_basename.'/languages');
29
  }
30
+ add_filter('init', 'A2A_SHARE_SAVE_textdomain');
31
 
32
  function A2A_SHARE_SAVE_link_vars($linkname = FALSE, $linkurl = FALSE) {
33
  global $post;
253
  }
254
 
255
 
256
+ function A2A_SHARE_SAVE_remove_from_content($content) {
257
+ remove_filter('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
258
+ return $content;
259
+ }
260
+
261
+
262
  function A2A_SHARE_SAVE_to_bottom_of_content($content) {
263
  $is_feed = is_feed();
264
 
323
  return $content;
324
  }
325
 
326
+ add_filter('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
327
+
328
+ // Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
329
+ add_filter('get_the_excerpt', 'A2A_SHARE_SAVE_remove_from_content', 9);
330
+ add_filter('the_excerpt', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
331
 
332
 
333
  function A2A_SHARE_SAVE_button_css($no_style_tag) {
380
  }
381
 
382
  if (get_option('A2A_SHARE_SAVE_inline_css') != '-1') {
383
+ add_filter('wp_head', 'A2A_SHARE_SAVE_button_css');
384
  }
385
 
386
 
818
  }
819
  }
820
 
821
+ add_filter('admin_head', 'A2A_SHARE_SAVE_admin_head');
822
 
823
  function A2A_SHARE_SAVE_add_menu_link() {
824
  global $wp_version;
840
  }
841
  }
842
 
843
+ add_filter('admin_menu', 'A2A_SHARE_SAVE_add_menu_link');
844
 
845
  // Place in Settings Option List
846
  function A2A_SHARE_SAVE_actlinks( $links, $file ){