Version Description
- Resolve notices in debug mode
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.6.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.0.1
- README.txt +4 -1
- add-to-any.php +4 -4
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat, addtoany
|
|
3 |
Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, socialize, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, +1, google +1, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any, AddToAny
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.3
|
6 |
-
Stable tag: 1.6
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
9 |
|
@@ -272,6 +272,9 @@ Upload the plugin directory (including all files and directories within) to the
|
|
272 |
|
273 |
== Changelog ==
|
274 |
|
|
|
|
|
|
|
275 |
= 1.6 =
|
276 |
* <a href="https://www.addtoany.com/buttons/customize/wordpress/follow_buttons">Follow buttons</a> have arrived for WordPress!
|
277 |
* Includes Instagram, YouTube, Vimeo, Flickr, Foursquare, Behance, and RSS
|
3 |
Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, socialize, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, +1, google +1, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any, AddToAny
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.3
|
6 |
+
Stable tag: 1.6.0.1
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
9 |
|
272 |
|
273 |
== Changelog ==
|
274 |
|
275 |
+
= 1.6.0.1 =
|
276 |
+
* Resolve notices in debug mode
|
277 |
+
|
278 |
= 1.6 =
|
279 |
* <a href="https://www.addtoany.com/buttons/customize/wordpress/follow_buttons">Follow buttons</a> have arrived for WordPress!
|
280 |
* Includes Instagram, YouTube, Vimeo, Flickr, Foursquare, Behance, and RSS
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Share Buttons by AddToAny
|
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. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: 1.6
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
*/
|
@@ -249,6 +249,8 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
249 |
|
250 |
foreach( $active_services as $active_service ) {
|
251 |
|
|
|
|
|
252 |
if ( ! in_array( $active_service, $service_codes ) )
|
253 |
continue;
|
254 |
|
@@ -279,8 +281,6 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
279 |
$href = str_replace( "A2A_LINKURL", $href_linkurl, $href );
|
280 |
$href = str_replace( "A2A_LINKNAME", $href_linkname, $href );
|
281 |
$href = str_replace( " ", "%20", $href );
|
282 |
-
} else {
|
283 |
-
$custom_service = false;
|
284 |
}
|
285 |
|
286 |
// AddToAny counter enabled?
|
@@ -297,7 +297,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
297 |
$width_attr = ( isset( $service['icon_width'] ) ) ? ' width="' . $service['icon_width'] . '"' : ' width="16"';
|
298 |
$height_attr = ( isset( $service['icon_height'] ) ) ? ' height="' . $service['icon_height'] . '"' : ' height="16"';
|
299 |
|
300 |
-
$url = ( $href ) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&linkname=" . $linkname_enc;
|
301 |
$src = ( $icon_url ) ? $icon_url : $icons_dir . $icon . '.' . $icons_type;
|
302 |
$counter = ( $counter_enabled ) ? ' a2a_counter' : '';
|
303 |
$class_attr = ( $custom_service ) ? '' : ' class="a2a_button_' . $safe_name . $counter . '"';
|
3 |
Plugin Name: Share Buttons by AddToAny
|
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. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: 1.6.0.1
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
*/
|
249 |
|
250 |
foreach( $active_services as $active_service ) {
|
251 |
|
252 |
+
$custom_service = false;
|
253 |
+
|
254 |
if ( ! in_array( $active_service, $service_codes ) )
|
255 |
continue;
|
256 |
|
281 |
$href = str_replace( "A2A_LINKURL", $href_linkurl, $href );
|
282 |
$href = str_replace( "A2A_LINKNAME", $href_linkname, $href );
|
283 |
$href = str_replace( " ", "%20", $href );
|
|
|
|
|
284 |
}
|
285 |
|
286 |
// AddToAny counter enabled?
|
297 |
$width_attr = ( isset( $service['icon_width'] ) ) ? ' width="' . $service['icon_width'] . '"' : ' width="16"';
|
298 |
$height_attr = ( isset( $service['icon_height'] ) ) ? ' height="' . $service['icon_height'] . '"' : ' height="16"';
|
299 |
|
300 |
+
$url = ( isset( $href ) ) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&linkname=" . $linkname_enc;
|
301 |
$src = ( $icon_url ) ? $icon_url : $icons_dir . $icon . '.' . $icons_type;
|
302 |
$counter = ( $counter_enabled ) ? ' a2a_counter' : '';
|
303 |
$class_attr = ( $custom_service ) ? '' : ' class="a2a_button_' . $safe_name . $counter . '"';
|