Version Description
- Fix service count options in settings
- Load JS for the customizer only when the customizer is used (thanks Neil)
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.7.25 |
Comparing to | |
See all releases |
Code changes from version 1.7.24 to 1.7.25
- README.txt +6 -2
- add-to-any.php +1 -1
- addtoany.admin.php +8 -1
- addtoany.widgets.php +4 -4
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat, addtoany
|
|
3 |
Tags: AddToAny, share, sharing, social, share buttons, share button, social media, media, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, like, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed, icons
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.7.
|
7 |
|
8 |
Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
|
9 |
|
@@ -145,7 +145,7 @@ For more technical information on setting your pages up for Facebook sharing, se
|
|
145 |
|
146 |
= Why do share links route through AddToAny? =
|
147 |
|
148 |
-
|
149 |
|
150 |
= Where are buttons such as Instagram, YouTube, Snapchat? =
|
151 |
|
@@ -351,6 +351,10 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
|
|
351 |
|
352 |
== Changelog ==
|
353 |
|
|
|
|
|
|
|
|
|
354 |
= 1.7.24 =
|
355 |
* Move JS into a single block to prevent issues caused by some site optimization plugins
|
356 |
* Simplify file paths & URLs
|
3 |
Tags: AddToAny, share, sharing, social, share buttons, share button, social media, media, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, like, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed, icons
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.7.25
|
7 |
|
8 |
Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
|
9 |
|
145 |
|
146 |
= Why do share links route through AddToAny? =
|
147 |
|
148 |
+
AddToAny routing enables publisher customization, visitor personalization, and keeps the AddToAny plugin remarkably lightweight without the need for constant plugin updates. In AddToAny menus, visitors see the services they actually use. On mobile, AddToAny presents the choice of sharing to a service's native app or mobile site and the preference is used on the next share. Publishers take advantage of AddToAny services such as <a href="https://www.addtoany.com/buttons/customize/wordpress/email_template">email templates</a>, <a href="https://www.addtoany.com/buttons/customize/wordpress/twitter_message">Twitter templates</a>, <a href="https://www.addtoany.com/buttons/customize/wordpress/templates">custom parameters</a>, <a href="https://www.addtoany.com/buttons/customize/wordpress/link_tracking">URL shorteners</a>, localization, and more. Just as service icons change, service endpoints change too, and AddToAny is updated daily to reflect service endpoint and API changes.
|
149 |
|
150 |
= Where are buttons such as Instagram, YouTube, Snapchat? =
|
151 |
|
351 |
|
352 |
== Changelog ==
|
353 |
|
354 |
+
= 1.7.25 =
|
355 |
+
* Fix service count options in settings
|
356 |
+
* Load JS for the customizer only when the customizer is used (thanks Neil)
|
357 |
+
|
358 |
= 1.7.24 =
|
359 |
* Move JS into a single block to prevent issues caused by some site optimization plugins
|
360 |
* Simplify file paths & URLs
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: AddToAny Share Buttons
|
4 |
Plugin URI: https://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
6 |
-
Version: 1.7.
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
Text Domain: add-to-any
|
3 |
Plugin Name: AddToAny Share Buttons
|
4 |
Plugin URI: https://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
6 |
+
Version: 1.7.25
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
Text Domain: add-to-any
|
addtoany.admin.php
CHANGED
@@ -354,6 +354,12 @@ function A2A_SHARE_SAVE_options_page() {
|
|
354 |
$new_options['special_twitter_tweet_options'] = array(
|
355 |
'show_count' => '-1' // Twitter doesn't provide counts anymore
|
356 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
$new_options['special_pinterest_pin_options'] = array(
|
358 |
'show_count' => ( ( isset( $_POST['addtoany_pinterest_pin_show_count'] ) && $_POST['addtoany_pinterest_pin_show_count'] == '1' ) ? '1' : '-1' )
|
359 |
);
|
@@ -921,7 +927,8 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
921 |
+ '<option value="like">Like</option>'
|
922 |
+ '<option' + checked + ' value="recommend">Recommend</option>'
|
923 |
+ '</select>';
|
924 |
-
} else
|
|
|
925 |
if (service_options[this_service_name] && service_options[this_service_name].show_count) {
|
926 |
checked = ' checked="checked"';
|
927 |
}
|
354 |
$new_options['special_twitter_tweet_options'] = array(
|
355 |
'show_count' => '-1' // Twitter doesn't provide counts anymore
|
356 |
);
|
357 |
+
$new_options['special_google_plusone_options'] = array(
|
358 |
+
'show_count' => '-1' // Google+ doesn't provide counts anymore
|
359 |
+
);
|
360 |
+
$new_options['special_google_plus_share_options'] = array(
|
361 |
+
'show_count' => '-1' // Google+ doesn't provide counts anymore
|
362 |
+
);
|
363 |
$new_options['special_pinterest_pin_options'] = array(
|
364 |
'show_count' => ( ( isset( $_POST['addtoany_pinterest_pin_show_count'] ) && $_POST['addtoany_pinterest_pin_show_count'] == '1' ) ? '1' : '-1' )
|
365 |
);
|
927 |
+ '<option value="like">Like</option>'
|
928 |
+ '<option' + checked + ' value="recommend">Recommend</option>'
|
929 |
+ '</select>';
|
930 |
+
} else {
|
931 |
+
// Common "Show count" for facebook, pinterest, pinterest_pin, etc.
|
932 |
if (service_options[this_service_name] && service_options[this_service_name].show_count) {
|
933 |
checked = ' checked="checked"';
|
934 |
}
|
addtoany.widgets.php
CHANGED
@@ -19,9 +19,9 @@ class A2A_SHARE_SAVE_Widget extends WP_Widget {
|
|
19 |
);
|
20 |
parent::__construct( '', 'AddToAny Share', $widget_ops );
|
21 |
|
22 |
-
// Enqueue script if
|
23 |
// is_customize_preview() @since 4.0.0
|
24 |
-
if (
|
25 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
26 |
}
|
27 |
}
|
@@ -108,9 +108,9 @@ class A2A_Follow_Widget extends WP_Widget {
|
|
108 |
);
|
109 |
parent::__construct( '', 'AddToAny Follow', $widget_ops );
|
110 |
|
111 |
-
// Enqueue script if
|
112 |
// is_customize_preview() @since 4.0.0
|
113 |
-
if (
|
114 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
115 |
}
|
116 |
}
|
19 |
);
|
20 |
parent::__construct( '', 'AddToAny Share', $widget_ops );
|
21 |
|
22 |
+
// Enqueue script if in Customizer preview.
|
23 |
// is_customize_preview() @since 4.0.0
|
24 |
+
if ( function_exists( 'is_customize_preview' ) && is_customize_preview() ) {
|
25 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
26 |
}
|
27 |
}
|
108 |
);
|
109 |
parent::__construct( '', 'AddToAny Follow', $widget_ops );
|
110 |
|
111 |
+
// Enqueue script if in Customizer preview.
|
112 |
// is_customize_preview() @since 4.0.0
|
113 |
+
if ( function_exists( 'is_customize_preview' ) && is_customize_preview() ) {
|
114 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
115 |
}
|
116 |
}
|