Version Description
- 2021-04-01 =
- Bug fix: Edit post "ssb_post_meta" fix.
- Bug fix: No option select fix.
- Enhancement: Code optimization.
- Compatibility: Compatible with WordPress 5.7
- Compatibility: Compatible with PHP 8.0.0
Download this release
Release Info
| Developer | hiddenpearls |
| Plugin | |
| Version | 3.2.2 |
| Comparing to | |
| See all releases | |
Code changes from version 3.2.1 to 3.2.2
- classes/ssb-admin.php +4 -1
- readme.txt +10 -3
- simple-social-buttons.php +2 -2
classes/ssb-admin.php
CHANGED
|
@@ -90,7 +90,8 @@ if ( ! class_exists( 'SimpleSocialButtonsPR_Admin' ) ) :
|
|
| 90 |
$selected_post_type = array();
|
| 91 |
foreach ( $ssb_positions['position'] as $key => $value ) {
|
| 92 |
$options = get_option( 'ssb_' . $value );
|
| 93 |
-
|
|
|
|
| 94 |
foreach ( $options['posts'] as $allow_post_type ) {
|
| 95 |
$selected_post_type[ $allow_post_type ] = $allow_post_type;
|
| 96 |
}
|
|
@@ -102,7 +103,9 @@ if ( ! class_exists( 'SimpleSocialButtonsPR_Admin' ) ) :
|
|
| 102 |
return false;
|
| 103 |
}
|
| 104 |
|
|
|
|
| 105 |
$currentSsbHide = get_post_custom_values( $this->hideCustomMetaKey, $postId );
|
|
|
|
| 106 |
|
| 107 |
if ( $currentSsbHide[0] == 'true' ) {
|
| 108 |
$checked = true;
|
| 90 |
$selected_post_type = array();
|
| 91 |
foreach ( $ssb_positions['position'] as $key => $value ) {
|
| 92 |
$options = get_option( 'ssb_' . $value );
|
| 93 |
+
|
| 94 |
+
if ( isset( $options['posts'] ) && $options['posts'] !== '' ) {
|
| 95 |
foreach ( $options['posts'] as $allow_post_type ) {
|
| 96 |
$selected_post_type[ $allow_post_type ] = $allow_post_type;
|
| 97 |
}
|
| 103 |
return false;
|
| 104 |
}
|
| 105 |
|
| 106 |
+
//Upon Editing or adding the post.
|
| 107 |
$currentSsbHide = get_post_custom_values( $this->hideCustomMetaKey, $postId );
|
| 108 |
+
$currentSsbHide[0] = isset( $currentSsbHide ) ? $currentSsbHide[0] : false;
|
| 109 |
|
| 110 |
if ( $currentSsbHide[0] == 'true' ) {
|
| 111 |
$checked = true;
|
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,6 +147,13 @@ like_button_size = small(default), large
|
|
| 147 |
|
| 148 |
== Changelog ==
|
| 149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
= 3.2.1 - 2020-12-18 =
|
| 151 |
* Bug fix: Security vulnerabilities fixed, Upgrade immediately.
|
| 152 |
|
|
@@ -447,5 +454,5 @@ like_button_size = small(default), large
|
|
| 447 |
|
| 448 |
== Upgrade Notice ==
|
| 449 |
|
| 450 |
-
= 3.2.
|
| 451 |
* 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.7
|
| 7 |
+
Stable tag: 3.2.2
|
| 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.2 - 2021-04-01 =
|
| 151 |
+
* Bug fix: Edit post "ssb_post_meta" fix.
|
| 152 |
+
* Bug fix: No option select fix.
|
| 153 |
+
* Enhancement: Code optimization.
|
| 154 |
+
* Compatibility: Compatible with WordPress 5.7
|
| 155 |
+
* Compatibility: Compatible with PHP 8.0.0
|
| 156 |
+
|
| 157 |
= 3.2.1 - 2020-12-18 =
|
| 158 |
* Bug fix: Security vulnerabilities fixed, Upgrade immediately.
|
| 159 |
|
| 454 |
|
| 455 |
== Upgrade Notice ==
|
| 456 |
|
| 457 |
+
= 3.2.2 =
|
| 458 |
* 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
|
| 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.2
|
| 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.2';
|
| 48 |
|
| 49 |
/**
|
| 50 |
* Plugin Prefix
|
