AddToAny Share Buttons - Version 1.7.6

Version Description

  • Skip background colors on AMP for out-of-date PHP versions below PHP 5.3
Download this release

Release Info

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

Code changes from version 1.7.5 to 1.7.6

Files changed (2) hide show
  1. README.txt +4 -1
  2. add-to-any.php +3 -3
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat, addtoany
3
  Tags: AddToAny, share, sharing, social, share button, share buttons, social media, media, marketing, links, email, seo, woocommerce, ecommerce, google, linkedin, reddit, facebook, like, twitter, pinterest, whatsapp, instagram, youtube, addthis, share this, sharethis, feed, icons
4
  Requires at least: 3.7
5
  Tested up to: 4.7
6
- Stable tag: 1.7.5
7
 
8
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
9
 
@@ -334,6 +334,9 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
334
 
335
  == Changelog ==
336
 
 
 
 
337
  = 1.7.5 =
338
  * Add background colors to share buttons on [AMP](https://wordpress.org/plugins/amp/) (Accelerated Mobile Pages) to support new AddToAny SVG icons
339
  * Fix AMP issue from `in_the_loop` check in 1.7.3
3
  Tags: AddToAny, share, sharing, social, share button, share buttons, social media, media, marketing, links, email, seo, woocommerce, ecommerce, google, linkedin, reddit, facebook, like, twitter, pinterest, whatsapp, instagram, youtube, addthis, share this, sharethis, feed, icons
4
  Requires at least: 3.7
5
  Tested up to: 4.7
6
+ Stable tag: 1.7.6
7
 
8
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
9
 
334
 
335
  == Changelog ==
336
 
337
+ = 1.7.6 =
338
+ * Skip background colors on AMP for [out-of-date PHP versions](https://secure.php.net/eol.php) below PHP 5.3
339
+
340
  = 1.7.5 =
341
  * Add background colors to share buttons on [AMP](https://wordpress.org/plugins/amp/) (Accelerated Mobile Pages) to support new AddToAny SVG icons
342
  * Fix AMP issue from `in_the_loop` check in 1.7.3
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.5
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  Text Domain: add-to-any
@@ -351,7 +351,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
351
 
352
  $ind_html .= $html_container_close;
353
 
354
- if ( $is_amp ) {
355
  add_action( 'amp_post_template_css', function( $amp_template ) use ( $amp_css ) { echo $amp_css; } );
356
  }
357
 
@@ -483,7 +483,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
483
  // Closing tags come after <script> to validate in case the container is a list element
484
  $button_html .= $html_wrap_close . $html_container_close;
485
 
486
- if ( $is_amp ) {
487
  add_action( 'amp_post_template_css', function( $amp_template ) use ( $amp_css ) { echo $amp_css; } );
488
  }
489
 
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.6
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  Text Domain: add-to-any
351
 
352
  $ind_html .= $html_container_close;
353
 
354
+ if ( $is_amp && version_compare( PHP_VERSION, '5.3.0', '>=' ) ) {
355
  add_action( 'amp_post_template_css', function( $amp_template ) use ( $amp_css ) { echo $amp_css; } );
356
  }
357
 
483
  // Closing tags come after <script> to validate in case the container is a list element
484
  $button_html .= $html_wrap_close . $html_container_close;
485
 
486
+ if ( $is_amp && version_compare( PHP_VERSION, '5.3.0', '>=' ) ) {
487
  add_action( 'amp_post_template_css', function( $amp_template ) use ( $amp_css ) { echo $amp_css; } );
488
  }
489