AddToAny Share Buttons - Version 1.7.43

Version Description

  • Update the vertical floating bar's "Attach to content" option to check whether content exists before attaching
Download this release

Release Info

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

Code changes from version 1.7.42 to 1.7.43

Files changed (2) hide show
  1. README.txt +5 -2
  2. add-to-any.php +4 -3
README.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: micropat, addtoany
3
  Tags: buttons, share, icons, social media, share buttons, sharing, share button, media, social, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed
4
  Requires at least: 3.7
5
- Tested up to: 5.5
6
  Requires PHP: 5.6
7
- Stable tag: 1.7.42
8
 
9
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too.
10
 
@@ -346,6 +346,9 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
346
 
347
  == Changelog ==
348
 
 
 
 
349
  = 1.7.42 =
350
  * Update the "Show sharing buttons" meta box to not display in the WordPress editor when automatic placement is disabled for the current post type
351
 
2
  Contributors: micropat, addtoany
3
  Tags: buttons, share, icons, social media, share buttons, sharing, share button, media, social, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed
4
  Requires at least: 3.7
5
+ Tested up to: 5.6
6
  Requires PHP: 5.6
7
+ Stable tag: 1.7.43
8
 
9
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too.
10
 
346
 
347
  == Changelog ==
348
 
349
+ = 1.7.43 =
350
+ * Update the vertical floating bar's "Attach to content" option to check whether content exists before attaching
351
+
352
  = 1.7.42 =
353
  * Update the "Show sharing buttons" meta box to not display in the WordPress editor when automatic placement is disabled for the current post type
354
 
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.42
7
  * Author: AddToAny
8
  * Author URI: https://www.addtoany.com/
9
  * Text Domain: add-to-any
@@ -820,14 +820,15 @@ function A2A_SHARE_SAVE_head_script() {
820
  . 'ready: function(){'
821
  . 'var d=document;'
822
  . 'function a(){'
823
- . 'var e=d.createElement("div");'
824
  . 'e.innerHTML=' . wp_json_encode( ADDTOANY_SHARE_SAVE_FLOATING( array(
825
  'output_later' => true,
826
  'basic_html' => true,
827
  'kit_style' => $floating_js_kit_style,
828
  'vertical_type' => true,
829
  ) ) ) . ';'
830
- . 'd.querySelector(' . wp_json_encode( stripslashes( $options['floating_vertical_attached_to'] ) ) . ').appendChild(e.firstChild);'
 
831
  . 'a2a.init("page");'
832
  . '}'
833
  . 'if("loading"!==d.readyState)a();else d.addEventListener("DOMContentLoaded",a,false);'
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.43
7
  * Author: AddToAny
8
  * Author URI: https://www.addtoany.com/
9
  * Text Domain: add-to-any
820
  . 'ready: function(){'
821
  . 'var d=document;'
822
  . 'function a(){'
823
+ . 'var c,e=d.createElement("div");'
824
  . 'e.innerHTML=' . wp_json_encode( ADDTOANY_SHARE_SAVE_FLOATING( array(
825
  'output_later' => true,
826
  'basic_html' => true,
827
  'kit_style' => $floating_js_kit_style,
828
  'vertical_type' => true,
829
  ) ) ) . ';'
830
+ . 'c=d.querySelector(' . wp_json_encode( stripslashes( $options['floating_vertical_attached_to'] ) ) . ');'
831
+ . 'if(c)c.appendChild(e.firstChild);'
832
  . 'a2a.init("page");'
833
  . '}'
834
  . 'if("loading"!==d.readyState)a();else d.addEventListener("DOMContentLoaded",a,false);'