Version Description
- Remove: Remove new ?? from file. Revert to old PHP way.
Download this release
Release Info
Developer | DavidoffNeal |
Plugin | Simple Share Buttons Adder |
Version | 8.1.1 |
Comparing to | |
See all releases |
Code changes from version 8.1.0 to 8.1.1
- instance.php +1 -1
- php/class-admin-bits.php +2 -1
- readme.txt +4 -1
- simple-share-buttons-adder.php +3 -3
instance.php
CHANGED
@@ -9,7 +9,7 @@ namespace SimpleShareButtonsAdder;
|
|
9 |
|
10 |
define( 'SSBA_FILE', __FILE__ );
|
11 |
define( 'SSBA_ROOT', dirname( __FILE__ ) );
|
12 |
-
define( 'SSBA_VERSION', '8.1.
|
13 |
|
14 |
global $simple_share_buttons_adder_plugin;
|
15 |
|
9 |
|
10 |
define( 'SSBA_FILE', __FILE__ );
|
11 |
define( 'SSBA_ROOT', dirname( __FILE__ ) );
|
12 |
+
define( 'SSBA_VERSION', '8.1.1' );
|
13 |
|
14 |
global $simple_share_buttons_adder_plugin;
|
15 |
|
php/class-admin-bits.php
CHANGED
@@ -300,7 +300,8 @@ class Admin_Bits
|
|
300 |
wp_send_json_error('gdpr update fail');
|
301 |
}
|
302 |
|
303 |
-
$current_settings = get_option('ssba_settings')
|
|
|
304 |
|
305 |
if ('' === $current_settings) {
|
306 |
wp_send_json_error('no settings');
|
300 |
wp_send_json_error('gdpr update fail');
|
301 |
}
|
302 |
|
303 |
+
$current_settings = get_option('ssba_settings');
|
304 |
+
$current_settings = !empty($current_settings) ? $current_settings : '';
|
305 |
|
306 |
if ('' === $current_settings) {
|
307 |
wp_send_json_error('no settings');
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: sharethis, scottstorebloom, surlyrightclick, DavidoffNeal
|
|
3 |
Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk, flattr
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.5.3
|
6 |
-
Stable tag: 8.1.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
@@ -66,6 +66,9 @@ Please visit the <a href="https://wordpress.org/support/plugin/simple-share-butt
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
69 |
= 8.1.0 =
|
70 |
* Remove: Registration.
|
71 |
* Add: new privacy terms.
|
3 |
Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk, flattr
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.5.3
|
6 |
+
Stable tag: 8.1.1
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 8.1.1 =
|
70 |
+
* Remove: Remove new ?? from file. Revert to old PHP way.
|
71 |
+
|
72 |
= 8.1.0 =
|
73 |
* Remove: Registration.
|
74 |
* Add: new privacy terms.
|
simple-share-buttons-adder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Share Buttons Adder
|
4 |
* Plugin URI: https://simplesharebuttons.com
|
5 |
* Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
6 |
-
* Version: 8.1.
|
7 |
* Author: Simple Share Buttons
|
8 |
* Author URI: https://simplesharebuttons.com
|
9 |
* License: GPLv2
|
@@ -22,7 +22,7 @@ GNU General Public License for more details.
|
|
22 |
* @package SimpleShareButtonsAdder
|
23 |
*/
|
24 |
|
25 |
-
if ( version_compare( phpversion(), '5.
|
26 |
require_once __DIR__ . '/instance.php';
|
27 |
} else {
|
28 |
if ( defined( 'WP_CLI' ) ) {
|
@@ -45,7 +45,7 @@ function _simple_share_buttons_adder_php_version_error() {
|
|
45 |
* @return string
|
46 |
*/
|
47 |
function _simple_share_buttons_adder_php_version_text() {
|
48 |
-
return __( 'Simple Share Buttons Adder plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.
|
49 |
}
|
50 |
|
51 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), '_simple_share_buttons_adder_add_action_links' );
|
3 |
* Plugin Name: Simple Share Buttons Adder
|
4 |
* Plugin URI: https://simplesharebuttons.com
|
5 |
* Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
6 |
+
* Version: 8.1.1
|
7 |
* Author: Simple Share Buttons
|
8 |
* Author URI: https://simplesharebuttons.com
|
9 |
* License: GPLv2
|
22 |
* @package SimpleShareButtonsAdder
|
23 |
*/
|
24 |
|
25 |
+
if ( version_compare( phpversion(), '5.6', '>=' ) ) {
|
26 |
require_once __DIR__ . '/instance.php';
|
27 |
} else {
|
28 |
if ( defined( 'WP_CLI' ) ) {
|
45 |
* @return string
|
46 |
*/
|
47 |
function _simple_share_buttons_adder_php_version_text() {
|
48 |
+
return __( 'Simple Share Buttons Adder plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.6 or higher.', 'simple-share-buttons-adder' );
|
49 |
}
|
50 |
|
51 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), '_simple_share_buttons_adder_add_action_links' );
|