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

Version Description

  • Improved compatibility with older versions of Wordpress (2.x)
  • Compatible with Wordpress 4.8.1
Download this release

Release Info

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

Code changes from version 4.1.2 to 4.1.3

Files changed (2) hide show
  1. readme.txt +6 -2
  2. share-buttons-hupso.php +22 -6
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.7.5
7
- Stable tag: 4.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -309,6 +309,10 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
309
 
310
  == Changelog ==
311
 
 
 
 
 
312
  = 4.1.2 =
313
  * Improved HTTPS/SSL support (Fix for Preview in Plugin Settings)
314
  * Compatible with Wordpress 4.7.5
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
 
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
315
+
316
  = 4.1.2 =
317
  * Improved HTTPS/SSL support (Fix for Preview in Plugin Settings)
318
  * Compatible with Wordpress 4.7.5
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.2
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.2';
16
 
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
@@ -533,8 +533,14 @@ function hupso_admin_settings_show() {
533
 
534
  <?php
535
  /* background & border color */
536
- $hupso_background_color = sanitize_hex_color_no_hash(get_option( 'hupso_background_color', 'EAF4FF'));
537
- $hupso_border_color = sanitize_hex_color_no_hash(get_option( 'hupso_border_color', '66CCFF'));
 
 
 
 
 
 
538
  ?>
539
  <div id="show_color">
540
  <table style="border: 0px;">
@@ -1079,11 +1085,21 @@ function hupso_admin_settings_save() {
1079
 
1080
  /* save background & border color */
1081
  if ( $post ) {
 
1082
  $hupso_background_color = sanitize_hex_color_no_hash(@$_POST[ 'background_color' ]);
1083
- update_option( 'hupso_background_color', $hupso_background_color );
 
 
 
 
1084
 
 
1085
  $hupso_border_color = sanitize_hex_color_no_hash(@$_POST[ 'border_color' ]);
1086
- update_option( 'hupso_border_color', $hupso_border_color );
 
 
 
 
1087
  }
1088
 
1089
  /* save custom icons */
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
  */
13
 
14
  global $HUPSO_VERSION;
15
+ $HUPSO_VERSION = '4.1.3';
16
 
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
533
 
534
  <?php
535
  /* background & border color */
536
+ if ( function_exists( 'sanitize_hex_color_no_hash' ) ) {
537
+ $hupso_background_color = sanitize_hex_color_no_hash(get_option( 'hupso_background_color', 'EAF4FF'));
538
+ $hupso_border_color = sanitize_hex_color_no_hash(get_option( 'hupso_border_color', '66CCFF'));
539
+ }
540
+ else {
541
+ $hupso_background_color = sanitize_text_field(get_option( 'hupso_background_color', 'EAF4FF'));
542
+ $hupso_border_color = sanitize_text_field(get_option( 'hupso_border_color', '66CCFF'));
543
+ }
544
  ?>
545
  <div id="show_color">
546
  <table style="border: 0px;">
1085
 
1086
  /* save background & border color */
1087
  if ( $post ) {
1088
+ if ( function_exists( 'sanitize_hex_color_no_hash' ) ) {
1089
  $hupso_background_color = sanitize_hex_color_no_hash(@$_POST[ 'background_color' ]);
1090
+ }
1091
+ else {
1092
+ $hupso_background_color = sanitize_text_field(@$_POST[ 'background_color' ]);
1093
+ }
1094
+ update_option( 'hupso_background_color', $hupso_background_color );
1095
 
1096
+ if ( function_exists( 'sanitize_hex_color_no_hash' ) ) {
1097
  $hupso_border_color = sanitize_hex_color_no_hash(@$_POST[ 'border_color' ]);
1098
+ }
1099
+ else {
1100
+ $hupso_border_color = sanitize_text_field(@$_POST[ 'border_color' ]);
1101
+ }
1102
+ update_option( 'hupso_border_color', $hupso_border_color );
1103
  }
1104
 
1105
  /* save custom icons */