Version Description
- Harden AJAX detection
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.2.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.7.2 to 1.2.7.3
- README.txt +5 -2
- add-to-any.php +3 -2
README.txt
CHANGED
@@ -3,7 +3,7 @@ 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, sidebar, widget, email, e-mail, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, messenger, stumbleupon, technorati, lockerz, addthis, sexybookmarks, sociable, sharedaddy, shareaholic, icon, icons, vector, SVG, wpmu, addtoany
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.7
|
6 |
-
Stable tag: 1.2.7.
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
@@ -29,7 +29,7 @@ The Email tab makes it easy to share via Google Gmail, Yahoo! Mail, Outlook.com
|
|
29 |
* WordPress optimized with asynchronous script loading
|
30 |
* Localized in English, Chinese, Spanish, Arabic, French, Portuguese, Japanese, Italian, Dutch, Danish, Catalan, Persian, Russian, Turkish, Albanian, Romanian, Belarusian, Greek, Irish
|
31 |
* Easily customizable for beginners or advanced users, and highly extensible for developers and designers
|
32 |
-
* Supports theme features such as HTML5 & XHTML, widgets,
|
33 |
* Many more publisher and user features
|
34 |
|
35 |
With **years of active development**, over **2.6 million downloads**, and **ongoing support from the community**, this plugin still strives to be the best WordPress plugin for sharing. Thanks for your feedback!
|
@@ -234,6 +234,9 @@ Upload the plugin directory (including all files and directories within) to the
|
|
234 |
|
235 |
== Changelog ==
|
236 |
|
|
|
|
|
|
|
237 |
= 1.2.7.2 =
|
238 |
* Support infinite scrolling of post content in themes
|
239 |
* Support AJAX loading (on a `post-load` event)
|
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, sidebar, widget, email, e-mail, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, messenger, stumbleupon, technorati, lockerz, addthis, sexybookmarks, sociable, sharedaddy, shareaholic, icon, icons, vector, SVG, wpmu, addtoany
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.7
|
6 |
+
Stable tag: 1.2.7.3
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
29 |
* WordPress optimized with asynchronous script loading
|
30 |
* Localized in English, Chinese, Spanish, Arabic, French, Portuguese, Japanese, Italian, Dutch, Danish, Catalan, Persian, Russian, Turkish, Albanian, Romanian, Belarusian, Greek, Irish
|
31 |
* Easily customizable for beginners or advanced users, and highly extensible for developers and designers
|
32 |
+
* Supports theme features such as HTML5 & XHTML, widgets, infinite scroll, post formats
|
33 |
* Many more publisher and user features
|
34 |
|
35 |
With **years of active development**, over **2.6 million downloads**, and **ongoing support from the community**, this plugin still strives to be the best WordPress plugin for sharing. Thanks for your feedback!
|
234 |
|
235 |
== Changelog ==
|
236 |
|
237 |
+
= 1.2.7.3 =
|
238 |
+
* Harden AJAX detection
|
239 |
+
|
240 |
= 1.2.7.2 =
|
241 |
* Support infinite scrolling of post content in themes
|
242 |
* Support AJAX loading (on a `post-load` event)
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Share Buttons by AddToAny
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: 1.2.7.
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -335,7 +335,8 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
335 |
$_addtoany_targets[] = $button_config;
|
336 |
}
|
337 |
|
338 |
-
|
|
|
339 |
$javascript_button_config = "<script type=\"text/javascript\"><!--\n"
|
340 |
. "wpa2a.targets.push("
|
341 |
. $button_config
|
3 |
Plugin Name: Share Buttons by AddToAny
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: 1.2.7.3
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
335 |
$_addtoany_targets[] = $button_config;
|
336 |
}
|
337 |
|
338 |
+
// If doing AJAX (the DOING_AJAX constant can be unreliable)
|
339 |
+
if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) == 'xmlhttprequest' ) {
|
340 |
$javascript_button_config = "<script type=\"text/javascript\"><!--\n"
|
341 |
. "wpa2a.targets.push("
|
342 |
. $button_config
|