Social Media Share Buttons | MashShare - Version 3.5.7

Version Description

  • New: Compatible up to WordPress 5.0.1 Gutenberg
  • New: Option to hide MashShare share options editor meta box completely
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 Social Media Share Buttons | MashShare
Version 3.5.7
Comparing to
See all releases

Code changes from version 3.5.6 to 3.5.7

includes/admin/settings/metabox-settings.php CHANGED
@@ -19,6 +19,11 @@
19
function mashsb_show_meta_box(){
20
global $mashsb_options, $wp_roles;
21
22
// Show meta boxes per default in any case when user roles are not defined
23
if(!empty($mashsb_options) && !isset($mashsb_options['user_roles_for_sharing_options'])){
24
return true;
19
function mashsb_show_meta_box(){
20
global $mashsb_options, $wp_roles;
21
22
+ $visibility = !empty( $mashsb_options['user_roles_for_sharing_options']) ? $mashsb_options['user_roles_for_sharing_options'] : false;
23
+ if($visibility && in_array('disable', $visibility)){
24
+ return false;
25
+ }
26
+
27
// Show meta boxes per default in any case when user roles are not defined
28
if(!empty($mashsb_options) && !isset($mashsb_options['user_roles_for_sharing_options'])){
29
return true;
includes/admin/settings/register-settings.php CHANGED
@@ -248,10 +248,10 @@ function mashsb_get_registered_settings() {
248
),
249
"user_roles_for_sharing_options" => array(
250
"id" => "user_roles_for_sharing_options",
251
- "name" => __("Show Share Options Meta Box", "mashsb"),
252
- "desc" => __("Select user roles which can only see MashShare Social Sharing Meta Box Options on posts and pages edit screen and User Meta Box on user profiles. If nothing is set meta boxes are shown for all user roles", "mashsb"),
253
"type" => "multiselect",
254
- "options" => mashsb_get_user_roles(),
255
"placeholder" => __("Select User Roles", "mashsb"),
256
"std" => __("All Roles", "mashsb"),
257
),
248
),
249
"user_roles_for_sharing_options" => array(
250
"id" => "user_roles_for_sharing_options",
251
+ "name" => __("Show Share Options Meta Box User Roles", "mashsb"),
252
+ "desc" => __("Show the MashShare Share Options Meta Box on the page editor for certain user roles only. If nothing is set meta box is shown to all user roles.", "mashsb"),
253
"type" => "multiselect",
254
+ "options" => array_merge(array('disable' => 'Disable Share Options Meta Box') , mashsb_get_user_roles()),
255
"placeholder" => __("Select User Roles", "mashsb"),
256
"std" => __("All Roles", "mashsb"),
257
),
mashshare.php CHANGED
@@ -6,7 +6,7 @@
6
* Description: Mashshare is a Share functionality inspired by the the great website Mashable for Facebook and Twitter. More networks available.
7
* Author: René Hermenau
8
* Author URI: https://www.mashshare.net
9
- * Version: 3.5.6
10
* Text Domain: mashsb
11
* Domain Path: /languages
12
* Credits: Thanks go to Pippin Williamson and the edd team. When we started with Mashshare we decided to use the EDD code base and
@@ -37,7 +37,7 @@ if( !defined( 'ABSPATH' ) )
37
38
// Plugin version
39
if( !defined( 'MASHSB_VERSION' ) ) {
40
- define( 'MASHSB_VERSION', '3.5.6' );
41
}
42
43
// Debug mode
6
* Description: Mashshare is a Share functionality inspired by the the great website Mashable for Facebook and Twitter. More networks available.
7
* Author: René Hermenau
8
* Author URI: https://www.mashshare.net
9
+ * Version: 3.5.7
10
* Text Domain: mashsb
11
* Domain Path: /languages
12
* Credits: Thanks go to Pippin Williamson and the edd team. When we started with Mashshare we decided to use the EDD code base and
37
38
// Plugin version
39
if( !defined( 'MASHSB_VERSION' ) ) {
40
+ define( 'MASHSB_VERSION', '3.5.7' );
41
}
42
43
// Debug mode
readme.txt CHANGED
@@ -8,8 +8,8 @@ License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email, dsgvo
10
Requires at least: 3.6+
11
- Tested up to: 4.9
12
- Stable tag: 3.5.6
13
Requires PHP: 5.2
14
15
Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
@@ -250,6 +250,10 @@ Read here more about this: http://docs.mashshare.net/article/10-facebook-is-show
250
251
== Changelog ==
252
253
= 3.5.6 =
254
* Fix: Security fix to prevent XSS attacks
255
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email, dsgvo
10
Requires at least: 3.6+
11
+ Tested up to: 5.0
12
+ Stable tag: 3.5.7
13
Requires PHP: 5.2
14
15
Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
250
251
== Changelog ==
252
253
+ = 3.5.7 =
254
+ * New: Compatible up to WordPress 5.0.1 Gutenberg
255
+ * New: Option to hide MashShare share options editor meta box completely
256
+
257
= 3.5.6 =
258
* Fix: Security fix to prevent XSS attacks
259