Hupso Share Buttons for Twitter, Facebook & Google+ - Version 4.1.4

Version Description

  • Compatible with AMP plugin by Automattic
Download this release

Release Info

Developer kasal
Plugin Icon 128x128 Hupso Share Buttons for Twitter, Facebook & Google+
Version 4.1.4
Comparing to
See all releases

Code changes from version 4.1.3 to 4.1.4

Files changed (2) hide show
  1. readme.txt +6 -2
  2. share-buttons-hupso.php +15 -3
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Hupso Share Buttons for Twitter, Facebook & Google+ ===
2
  Contributors: kasal
3
  Donate link: http://www.hupso.com/
4
- Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, addtoany, sexybookmarks, pinterest, print, tumblr, bebo, social media, social buttons, social share, email, print button, social plugin, social widget, email button, post, vkontakte, vk.com, reddit, delicous, del.icio.us, linkedin, tumblr, pinterest, stumbleupon, digg, stumble upon, pinterest button, tweet, like, share, sharing, shortcode, button, page
5
  Requires at least: 2.9
6
  Tested up to: 4.8.1
7
- Stable tag: 4.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,6 +48,7 @@ These services are used by millions of people every day, so sharing your content
48
  * All share buttons are optional: You can add or remove any button from plugin settings
49
  * Multisite support (works with Wordpress Multi-site)
50
  * Support for custom post types (it is possible to show or hide share buttons for each custom post type)
 
51
 
52
  Share Buttons are *very easy to configure*. Just select button type, size, position and which social networking services do you want to offer to your visitors.
53
  Buttons will appear below your articles or on top of them (or both) as you choose.
@@ -309,6 +310,9 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
309
 
310
  == Changelog ==
311
 
 
 
 
312
  = 4.1.3 =
313
  * Improved compatibility with older versions of Wordpress (2.x)
314
  * Compatible with Wordpress 4.8.1
1
  === Hupso Share Buttons for Twitter, Facebook & Google+ ===
2
  Contributors: kasal
3
  Donate link: http://www.hupso.com/
4
+ Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, addtoany, sexybookmarks, pinterest, print, tumblr, bebo, social media, social buttons, social share, email, print button, social plugin, social widget, email button, post, vkontakte, vk.com, reddit, delicous, del.icio.us, linkedin, tumblr, pinterest, stumbleupon, digg, stumble upon, pinterest button, tweet, like, share, sharing, shortcode, button, page, amp
5
  Requires at least: 2.9
6
  Tested up to: 4.8.1
7
+ Stable tag: 4.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
  * All share buttons are optional: You can add or remove any button from plugin settings
49
  * Multisite support (works with Wordpress Multi-site)
50
  * Support for custom post types (it is possible to show or hide share buttons for each custom post type)
51
+ * Compatible with AMP plugin by Automattic
52
 
53
  Share Buttons are *very easy to configure*. Just select button type, size, position and which social networking services do you want to offer to your visitors.
54
  Buttons will appear below your articles or on top of them (or both) as you choose.
310
 
311
  == Changelog ==
312
 
313
+ = 4.1.4 =
314
+ * Compatible with AMP plugin by Automattic
315
+
316
  = 4.1.3 =
317
  * Improved compatibility with older versions of Wordpress (2.x)
318
  * Compatible with Wordpress 4.8.1
share-buttons-hupso.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
4
  Plugin URI: http://www.hupso.com/share/
5
  Description: Add simple social share buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, Tumblr, Pinterest, StumbleUpon, Digg, Reddit, Bebo, VKontakte and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
6
- Version: 4.1.3
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Domain Path: /languages
12
  */
13
 
14
  global $HUPSO_VERSION;
15
- $HUPSO_VERSION = '4.1.3';
16
 
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
@@ -1399,6 +1399,11 @@ function hupso_the_content_shortcodes( $content ) {
1399
  return $content;
1400
  }
1401
 
 
 
 
 
 
1402
  $post_url = ( isset($GLOBALS['post']) ? get_permalink($GLOBALS['post']->ID) : get_permalink() );
1403
  $post_title = ( isset( $GLOBALS['post'] ) ? $GLOBALS['post']->post_title : '' );
1404
 
@@ -1646,6 +1651,13 @@ function hupso_the_content( $content ) {
1646
  return $content;
1647
  }
1648
 
 
 
 
 
 
 
 
1649
  /* Check custom post types */
1650
  if (isset($post)) {
1651
  $name = 'hupso_custom_post_' . $post->post_type;
@@ -1963,7 +1975,7 @@ function hupso_the_content( $content ) {
1963
  }
1964
  }
1965
 
1966
- $hupso_shortcode_params = '';
1967
  return $new_content;
1968
 
1969
  }
3
  Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
4
  Plugin URI: http://www.hupso.com/share/
5
  Description: Add simple social share buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, Tumblr, Pinterest, StumbleUpon, Digg, Reddit, Bebo, VKontakte and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
6
+ Version: 4.1.4
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
13
 
14
  global $HUPSO_VERSION;
15
+ $HUPSO_VERSION = '4.1.4';
16
 
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
1399
  return $content;
1400
  }
1401
 
1402
+ if ( function_exists('is_amp_endpoint') ) {
1403
+ if ( is_amp_endpoint() )
1404
+ return $content;
1405
+ }
1406
+
1407
  $post_url = ( isset($GLOBALS['post']) ? get_permalink($GLOBALS['post']->ID) : get_permalink() );
1408
  $post_title = ( isset( $GLOBALS['post'] ) ? $GLOBALS['post']->post_title : '' );
1409
 
1651
  return $content;
1652
  }
1653
 
1654
+
1655
+ if ( function_exists('is_amp_endpoint') ) {
1656
+ if ( is_amp_endpoint() )
1657
+ return $content;
1658
+ }
1659
+
1660
+
1661
  /* Check custom post types */
1662
  if (isset($post)) {
1663
  $name = 'hupso_custom_post_' . $post->post_type;
1975
  }
1976
  }
1977
 
1978
+ $hupso_shortcode_params = '';
1979
  return $new_content;
1980
 
1981
  }