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

Version Description

  • Fixed a bug where plugin generated PHP Warning: Illegal string offset filter
Download this release

Release Info

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

Code changes from version 4.4.0 to 4.5.0

Files changed (2) hide show
  1. readme.txt +4 -1
  2. share-buttons-hupso.php +13 -10
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 5.1.1
7
- Stable tag: 4.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -307,6 +307,9 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
307
 
308
  == Changelog ==
309
 
 
 
 
310
  = 4.4.0 =
311
  * Removed Google+ (Google is shutting down Google+)
312
  * Compatible with Wordpress 5.1.1
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: 5.1.1
7
+ Stable tag: 4.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
307
 
308
  == Changelog ==
309
 
310
+ = 4.5.0 =
311
+ * Fixed a bug where plugin generated PHP Warning: Illegal string offset ‘filter’
312
+
313
  = 4.4.0 =
314
  * Removed Google+ (Google is shutting down Google+)
315
  * Compatible with Wordpress 5.1.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.4.0
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.4.0';
16
 
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
@@ -1443,10 +1443,11 @@ function hupso_the_content_shortcodes( $content ) {
1443
  else {
1444
  $current_category = '';
1445
  }
1446
- $hupso_hide_categories = sanitize_category(get_option( 'hupso_hide_categories' , array() ));
1447
- if ( $hupso_hide_categories == '' ) {
1448
- $hupso_hide_categories = array();
1449
- }
 
1450
 
1451
  $hupso_title_text = sanitize_text_field(get_option( 'hupso_title_text' , 'post' ));
1452
  $hupso_twitter_via = sanitize_text_field(get_option( 'hupso_twitter_via', '' ));
@@ -1780,10 +1781,12 @@ function hupso_the_content( $content ) {
1780
  else {
1781
  $current_category = '';
1782
  }
1783
- $hupso_hide_categories = sanitize_category(get_option( 'hupso_hide_categories' , array() ));
1784
- if ( $hupso_hide_categories == '' ) {
1785
- $hupso_hide_categories = array();
1786
- }
 
 
1787
  if ( ($hupso_state == 'normal') && (@in_array($current_category, (array) $hupso_hide_categories)) ) {
1788
  $content = str_ireplace('[hupso_hide]', '', $content);
1789
  $content = str_ireplace('[hupso]', '', $content);
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.5.0
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.5.0';
16
 
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
1443
  else {
1444
  $current_category = '';
1445
  }
1446
+ $opt = get_option( 'hupso_hide_categories' );
1447
+ if ( !is_array( $opt ) ) {
1448
+ $opt = array();
1449
+ }
1450
+ $hupso_hide_categories = sanitize_category( $opt );
1451
 
1452
  $hupso_title_text = sanitize_text_field(get_option( 'hupso_title_text' , 'post' ));
1453
  $hupso_twitter_via = sanitize_text_field(get_option( 'hupso_twitter_via', '' ));
1781
  else {
1782
  $current_category = '';
1783
  }
1784
+ $opt = get_option( 'hupso_hide_categories' );
1785
+ if ( !is_array( $opt ) ) {
1786
+ $opt = array();
1787
+ }
1788
+ $hupso_hide_categories = sanitize_category( $opt );
1789
+
1790
  if ( ($hupso_state == 'normal') && (@in_array($current_category, (array) $hupso_hide_categories)) ) {
1791
  $content = str_ireplace('[hupso_hide]', '', $content);
1792
  $content = str_ireplace('[hupso]', '', $content);