Version Description
- 2021-07-21 =
- Bug fix: Sanitize the Social Media shortcode attributes.
- Compatibility: Compatible with WordPress 5.8
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Simple Social Media Share Buttons – Social Sharing for Everyone |
Version | 3.2.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.2 to 3.2.3
- readme.txt +9 -5
- simple-social-buttons.php +7 -8
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: hiddenpearls, WPBrigade, desideveloper
|
|
3 |
Donate link: https://simplesocialbuttons.com/
|
4 |
Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, twitter, pinterest, plus one
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -147,9 +147,13 @@ like_button_size = small(default), large
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
|
|
150 |
= 3.2.2 - 2021-04-01 =
|
151 |
-
* Bug fix: Edit post
|
152 |
-
* Bug fix:
|
153 |
* Enhancement: Code optimization.
|
154 |
* Compatibility: Compatible with WordPress 5.7
|
155 |
* Compatibility: Compatible with PHP 8.0.0
|
@@ -454,5 +458,5 @@ like_button_size = small(default), large
|
|
454 |
|
455 |
== Upgrade Notice ==
|
456 |
|
457 |
-
= 3.2.
|
458 |
* Please upgrade immediately.
|
3 |
Donate link: https://simplesocialbuttons.com/
|
4 |
Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, twitter, pinterest, plus one
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 3.2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= 3.2.3 - 2021-07-21 =
|
151 |
+
* Bug fix: Sanitize the Social Media shortcode attributes.
|
152 |
+
* Compatibility: Compatible with WordPress 5.8
|
153 |
+
|
154 |
= 3.2.2 - 2021-04-01 =
|
155 |
+
* Bug fix: Illegal string offset during Edit post fix.
|
156 |
+
* Bug fix: Illegal offset when SSB location is not selected fix.
|
157 |
* Enhancement: Code optimization.
|
158 |
* Compatibility: Compatible with WordPress 5.7
|
159 |
* Compatibility: Compatible with PHP 8.0.0
|
458 |
|
459 |
== Upgrade Notice ==
|
460 |
|
461 |
+
= 3.2.3 =
|
462 |
* Please upgrade immediately.
|
simple-social-buttons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Social Buttons
|
4 |
* Plugin URI: https://simplesocialbuttons.com/
|
5 |
* Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Facebook, Twitter, WhatsApp, Viber, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
|
6 |
-
* Version: 3.2.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://www.WPBrigade.com/
|
9 |
* Text Domain: simple-social-buttons
|
@@ -44,7 +44,7 @@ class SimpleSocialButtonsPR {
|
|
44 |
* @isnce
|
45 |
* @var string
|
46 |
*/
|
47 |
-
public $pluginVersion = '3.2.
|
48 |
|
49 |
/**
|
50 |
* Plugin Prefix
|
@@ -1420,7 +1420,7 @@ class SimpleSocialButtonsPR {
|
|
1420 |
$theme = $this->selected_theme;
|
1421 |
}
|
1422 |
|
1423 |
-
if ( null !== $selected_theme['order'] ) {
|
1424 |
$selected_theme['order'] = array_flip( array_merge( array( 0 ), explode( ',', $selected_theme['order'] ) ) );
|
1425 |
|
1426 |
} else {
|
@@ -1441,7 +1441,7 @@ class SimpleSocialButtonsPR {
|
|
1441 |
$align_class = $selected_theme['align'];
|
1442 |
}
|
1443 |
|
1444 |
-
$extra_class = 'simplesocialbuttons_inline simplesocialbuttons-align-' . $align_class;
|
1445 |
|
1446 |
// if ( $this->inline['share_counts'] ) {
|
1447 |
if ( $selected_theme['counter'] == 'true' ) {
|
@@ -1459,7 +1459,7 @@ class SimpleSocialButtonsPR {
|
|
1459 |
$extra_option = array(
|
1460 |
'class' => $extra_class,
|
1461 |
'theme' => $theme,
|
1462 |
-
'like-button-size' => $like_button_size,
|
1463 |
'position' => 'shortcode',
|
1464 |
);
|
1465 |
|
@@ -1965,7 +1965,6 @@ class SimpleSocialButtonsPR {
|
|
1965 |
$theme = $this->selected_theme;
|
1966 |
}
|
1967 |
|
1968 |
-
// var_dump( $theme);
|
1969 |
|
1970 |
$attr['counter'] = $attr['counter'] ? 'true' : 'false';
|
1971 |
$attr['showTotalCount'] = $attr['showTotalCount'] ? 'true' : 'false';
|
@@ -1975,7 +1974,7 @@ class SimpleSocialButtonsPR {
|
|
1975 |
$alignemnt = "align='{$attr['alignment']}'";
|
1976 |
$like_button_size = "like_button_size='{$attr['likeButtonSize']}'";
|
1977 |
$show_total_count = "show_total_count='{$attr['showTotalCount']}'";
|
1978 |
-
$align = $attr['align'];
|
1979 |
|
1980 |
return "<div class='align$align'> [SSB $theme $order $counter $alignemnt $like_button_size $show_total_count] </div>";
|
1981 |
}
|
@@ -2000,7 +1999,7 @@ class SimpleSocialButtonsPR {
|
|
2000 |
$hide_link = "hide_link='{$attr['IncludePageLink']}'";
|
2001 |
$hide_button = "hide_button='{$attr['showTweetButton']}'";
|
2002 |
$include_via = "include_via='{$attr['IncludeVia']}'";
|
2003 |
-
$align = $attr['align'];
|
2004 |
|
2005 |
return "<div class='align$align'> [SBCTT $theme $front $tweet $hide_link $hide_button $include_via] </div>";
|
2006 |
}
|
3 |
* Plugin Name: Simple Social Buttons
|
4 |
* Plugin URI: https://simplesocialbuttons.com/
|
5 |
* Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Facebook, Twitter, WhatsApp, Viber, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
|
6 |
+
* Version: 3.2.3
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://www.WPBrigade.com/
|
9 |
* Text Domain: simple-social-buttons
|
44 |
* @isnce
|
45 |
* @var string
|
46 |
*/
|
47 |
+
public $pluginVersion = '3.2.3';
|
48 |
|
49 |
/**
|
50 |
* Plugin Prefix
|
1420 |
$theme = $this->selected_theme;
|
1421 |
}
|
1422 |
|
1423 |
+
if ( null !== $selected_theme['order'] && '' !== $selected_theme['order'] ) {
|
1424 |
$selected_theme['order'] = array_flip( array_merge( array( 0 ), explode( ',', $selected_theme['order'] ) ) );
|
1425 |
|
1426 |
} else {
|
1441 |
$align_class = $selected_theme['align'];
|
1442 |
}
|
1443 |
|
1444 |
+
$extra_class = 'simplesocialbuttons_inline simplesocialbuttons-align-' . esc_html( $align_class );
|
1445 |
|
1446 |
// if ( $this->inline['share_counts'] ) {
|
1447 |
if ( $selected_theme['counter'] == 'true' ) {
|
1459 |
$extra_option = array(
|
1460 |
'class' => $extra_class,
|
1461 |
'theme' => $theme,
|
1462 |
+
'like-button-size' => esc_html( $like_button_size ),
|
1463 |
'position' => 'shortcode',
|
1464 |
);
|
1465 |
|
1965 |
$theme = $this->selected_theme;
|
1966 |
}
|
1967 |
|
|
|
1968 |
|
1969 |
$attr['counter'] = $attr['counter'] ? 'true' : 'false';
|
1970 |
$attr['showTotalCount'] = $attr['showTotalCount'] ? 'true' : 'false';
|
1974 |
$alignemnt = "align='{$attr['alignment']}'";
|
1975 |
$like_button_size = "like_button_size='{$attr['likeButtonSize']}'";
|
1976 |
$show_total_count = "show_total_count='{$attr['showTotalCount']}'";
|
1977 |
+
$align = esc_html( $attr['align'] );
|
1978 |
|
1979 |
return "<div class='align$align'> [SSB $theme $order $counter $alignemnt $like_button_size $show_total_count] </div>";
|
1980 |
}
|
1999 |
$hide_link = "hide_link='{$attr['IncludePageLink']}'";
|
2000 |
$hide_button = "hide_button='{$attr['showTweetButton']}'";
|
2001 |
$include_via = "include_via='{$attr['IncludeVia']}'";
|
2002 |
+
$align = esc_html( $attr['align'] );
|
2003 |
|
2004 |
return "<div class='align$align'> [SBCTT $theme $front $tweet $hide_link $hide_button $include_via] </div>";
|
2005 |
}
|