Version Description
- Fix placement option for custom post types to not inherit the placement option for regular posts (thanks Air)
- Permit custom AddToAny button in floating share bars (thanks billsmithem)
- Update widget docblocks so they are not mistaken for PHP 4 constructors
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- README.txt +7 -2
- add-to-any.php +6 -4
- addtoany.admin.php +1 -1
- addtoany.widgets.php +24 -6
README.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Share Buttons by AddToAny ===
|
2 |
Contributors: micropat, addtoany
|
3 |
-
Tags:
|
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 |
|
@@ -298,6 +298,11 @@ Upload the plugin directory (including all files and directories within) to the
|
|
298 |
|
299 |
== Changelog ==
|
300 |
|
|
|
|
|
|
|
|
|
|
|
301 |
= 1.6.3 =
|
302 |
* Fix Google+ follow button URL by removing the hardcoded `+` (thanks foxtucker)
|
303 |
* Be sure to add the `+` to your `ID` if you have a Google+ custom URL.
|
1 |
=== Share Buttons by AddToAny ===
|
2 |
Contributors: micropat, addtoany
|
3 |
+
Tags: AddToAny, sharing, share, social, share button, share buttons, social media, media, marketing, bookmark, bookmarks, save, post, posts, page, pages, images, image, admin, analytics, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, woocommerce, ecommerce, e-commerce, amazon, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, share this, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.3
|
6 |
+
Stable tag: 1.6.4
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
9 |
|
298 |
|
299 |
== Changelog ==
|
300 |
|
301 |
+
= 1.6.4 =
|
302 |
+
* Fix placement option for custom post types to not inherit the placement option for regular posts (thanks Air)
|
303 |
+
* Permit custom AddToAny button in floating share bars (thanks billsmithem)
|
304 |
+
* Update widget docblocks so they are not mistaken for PHP 4 constructors
|
305 |
+
|
306 |
= 1.6.3 =
|
307 |
* Fix Google+ follow button URL by removing the hardcoded `+` (thanks foxtucker)
|
308 |
* Be sure to add the `+` to your `ID` if you have a Google+ custom URL.
|
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 |
*/
|
@@ -27,7 +27,6 @@ else {
|
|
27 |
$A2A_SHARE_SAVE_plugin_dir = WP_PLUGIN_DIR . '/' . $A2A_SHARE_SAVE_plugin_basename;
|
28 |
}
|
29 |
|
30 |
-
|
31 |
// Fix SSL
|
32 |
if ( is_ssl() ) {
|
33 |
$A2A_SHARE_SAVE_plugin_url_path = str_replace( 'http:', 'https:', $A2A_SHARE_SAVE_plugin_url_path );
|
@@ -388,7 +387,10 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
388 |
// If universal button is enabled
|
389 |
if ( ! $args['no_universal_button'] ) {
|
390 |
|
391 |
-
if ( ! isset( $options['button'] ) || 'A2A_SVG_32' == $options['button']
|
|
|
|
|
|
|
392 |
// Skip button IMG for A2A icon insertion
|
393 |
$button_text = '';
|
394 |
} else if ( isset( $options['button'] ) && 'CUSTOM' == $options['button'] ) {
|
@@ -921,7 +923,7 @@ function A2A_SHARE_SAVE_add_to_content( $content ) {
|
|
921 |
(
|
922 |
// Posts
|
923 |
// All posts
|
924 |
-
(
|
925 |
// Front page posts
|
926 |
( is_home() && isset( $options['display_in_posts_on_front_page'] ) && $options['display_in_posts_on_front_page'] == '-1' ) ||
|
927 |
// Archive page posts (Category, Tag, Author and Date pages)
|
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.4
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
*/
|
27 |
$A2A_SHARE_SAVE_plugin_dir = WP_PLUGIN_DIR . '/' . $A2A_SHARE_SAVE_plugin_basename;
|
28 |
}
|
29 |
|
|
|
30 |
// Fix SSL
|
31 |
if ( is_ssl() ) {
|
32 |
$A2A_SHARE_SAVE_plugin_url_path = str_replace( 'http:', 'https:', $A2A_SHARE_SAVE_plugin_url_path );
|
387 |
// If universal button is enabled
|
388 |
if ( ! $args['no_universal_button'] ) {
|
389 |
|
390 |
+
if ( ! isset( $options['button'] ) || 'A2A_SVG_32' == $options['button']
|
391 |
+
// Or, no_small_icons is true and a custom universal icon is not enabled (permitting a custom universal button in floating bar)
|
392 |
+
|| isset( $no_small_icons ) && true == $no_small_icons && ( ! isset( $options['button'] ) || 'CUSTOM' != $options['button'] )
|
393 |
+
) {
|
394 |
// Skip button IMG for A2A icon insertion
|
395 |
$button_text = '';
|
396 |
} else if ( isset( $options['button'] ) && 'CUSTOM' == $options['button'] ) {
|
923 |
(
|
924 |
// Posts
|
925 |
// All posts
|
926 |
+
( is_singular('post') && isset( $options['display_in_posts'] ) && $options['display_in_posts'] == '-1' ) ||
|
927 |
// Front page posts
|
928 |
( is_home() && isset( $options['display_in_posts_on_front_page'] ) && $options['display_in_posts_on_front_page'] == '-1' ) ||
|
929 |
// Archive page posts (Category, Tag, Author and Date pages)
|
addtoany.admin.php
CHANGED
@@ -767,7 +767,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
767 |
</form>
|
768 |
|
769 |
<h2><?php _e('Like this plugin?','add-to-any'); ?></h2>
|
770 |
-
<p><?php _e('<a href="
|
771 |
<p><?php _e('<a href="https://www.addtoany.com/share_save#title=WordPress%20Share%20Plugin%20by%20AddToAny.com&url=http%3A%2F%2Fwordpress.org%2Fplugins%2Fadd-to-any%2F">Share it</a> and follow <a href="https://www.addtoany.com/">AddToAny</a> on <a href="https://www.facebook.com/AddToAny" target="_blank">Facebook</a> & <a href="https://twitter.com/AddToAny" target="_blank">Twitter</a>.','add-to-any'); ?></p>
|
772 |
|
773 |
<h2><?php _e('Need support?','add-to-any'); ?></h2>
|
767 |
</form>
|
768 |
|
769 |
<h2><?php _e('Like this plugin?','add-to-any'); ?></h2>
|
770 |
+
<p><?php _e('<a href="https://wordpress.org/support/view/plugin-reviews/add-to-any#postform" target="_blank">Give it a 5 star rating</a> on WordPress.org.','add-to-any'); ?></p>
|
771 |
<p><?php _e('<a href="https://www.addtoany.com/share_save#title=WordPress%20Share%20Plugin%20by%20AddToAny.com&url=http%3A%2F%2Fwordpress.org%2Fplugins%2Fadd-to-any%2F">Share it</a> and follow <a href="https://www.addtoany.com/">AddToAny</a> on <a href="https://www.facebook.com/AddToAny" target="_blank">Facebook</a> & <a href="https://twitter.com/AddToAny" target="_blank">Twitter</a>.','add-to-any'); ?></p>
|
772 |
|
773 |
<h2><?php _e('Need support?','add-to-any'); ?></h2>
|
addtoany.widgets.php
CHANGED
@@ -22,7 +22,10 @@ class A2A_SHARE_SAVE_Widget extends WP_Widget {
|
|
22 |
self::widget( $args, NULL );
|
23 |
}
|
24 |
|
25 |
-
/**
|
|
|
|
|
|
|
26 |
public function widget( $args = array(), $instance ) {
|
27 |
|
28 |
global $A2A_SHARE_SAVE_plugin_url_path;
|
@@ -51,14 +54,20 @@ class A2A_SHARE_SAVE_Widget extends WP_Widget {
|
|
51 |
echo $after_widget;
|
52 |
}
|
53 |
|
54 |
-
/**
|
|
|
|
|
|
|
|
|
55 |
public function update( $new_instance, $old_instance ) {
|
56 |
$instance = $old_instance;
|
57 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
58 |
return $instance;
|
59 |
}
|
60 |
|
61 |
-
/**
|
|
|
|
|
62 |
public function form( $instance ) {
|
63 |
$title = isset( $instance ) && ! empty( $instance['title'] ) ? __( $instance['title'] ) : '';
|
64 |
?>
|
@@ -87,7 +96,10 @@ class A2A_Follow_Widget extends WP_Widget {
|
|
87 |
parent::__construct( '', 'AddToAny Follow', $widget_ops );
|
88 |
}
|
89 |
|
90 |
-
/**
|
|
|
|
|
|
|
91 |
public function widget( $args = array(), $instance ) {
|
92 |
|
93 |
global $A2A_SHARE_SAVE_plugin_url_path;
|
@@ -128,7 +140,11 @@ class A2A_Follow_Widget extends WP_Widget {
|
|
128 |
echo $after_widget;
|
129 |
}
|
130 |
|
131 |
-
/**
|
|
|
|
|
|
|
|
|
132 |
public function update( $new_instance, $old_instance ) {
|
133 |
$instance = $old_instance;
|
134 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
@@ -145,7 +161,9 @@ class A2A_Follow_Widget extends WP_Widget {
|
|
145 |
return $instance;
|
146 |
}
|
147 |
|
148 |
-
/**
|
|
|
|
|
149 |
public function form( $instance ) {
|
150 |
$services = $this->get_follow_services();
|
151 |
|
22 |
self::widget( $args, NULL );
|
23 |
}
|
24 |
|
25 |
+
/**
|
26 |
+
* @param array $args
|
27 |
+
* @param array $instance
|
28 |
+
*/
|
29 |
public function widget( $args = array(), $instance ) {
|
30 |
|
31 |
global $A2A_SHARE_SAVE_plugin_url_path;
|
54 |
echo $after_widget;
|
55 |
}
|
56 |
|
57 |
+
/**
|
58 |
+
* @param array $new_instance
|
59 |
+
* @param array $old_instance
|
60 |
+
* @return array
|
61 |
+
*/
|
62 |
public function update( $new_instance, $old_instance ) {
|
63 |
$instance = $old_instance;
|
64 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
65 |
return $instance;
|
66 |
}
|
67 |
|
68 |
+
/**
|
69 |
+
* @param array $instance
|
70 |
+
*/
|
71 |
public function form( $instance ) {
|
72 |
$title = isset( $instance ) && ! empty( $instance['title'] ) ? __( $instance['title'] ) : '';
|
73 |
?>
|
96 |
parent::__construct( '', 'AddToAny Follow', $widget_ops );
|
97 |
}
|
98 |
|
99 |
+
/**
|
100 |
+
* @param array $args
|
101 |
+
* @param array $instance
|
102 |
+
*/
|
103 |
public function widget( $args = array(), $instance ) {
|
104 |
|
105 |
global $A2A_SHARE_SAVE_plugin_url_path;
|
140 |
echo $after_widget;
|
141 |
}
|
142 |
|
143 |
+
/**
|
144 |
+
* @param array $new_instance
|
145 |
+
* @param array $old_instance
|
146 |
+
* @return array
|
147 |
+
*/
|
148 |
public function update( $new_instance, $old_instance ) {
|
149 |
$instance = $old_instance;
|
150 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
161 |
return $instance;
|
162 |
}
|
163 |
|
164 |
+
/**
|
165 |
+
* @param array $instance
|
166 |
+
*/
|
167 |
public function form( $instance ) {
|
168 |
$services = $this->get_follow_services();
|
169 |
|