Version Description
- Fix: Security hardening.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Lightweight Sidebar Manager |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- classes/class-bsf-sb-metabox.php +5 -1
- readme.txt +4 -1
- sidebar-manager.php +2 -2
classes/class-bsf-sb-metabox.php
CHANGED
@@ -81,8 +81,12 @@ if ( ! class_exists( 'BSF_SB_Metabox' ) ) {
|
|
81 |
*/
|
82 |
public function metabox_save( $post_id ) {
|
83 |
|
|
|
|
|
|
|
|
|
84 |
if ( get_post_type() != BSF_SB_POST_TYPE
|
85 |
-
||
|
86 |
) {
|
87 |
return $post_id;
|
88 |
}
|
81 |
*/
|
82 |
public function metabox_save( $post_id ) {
|
83 |
|
84 |
+
if( ! isset( $_POST[ BSF_SB_POST_TYPE . '-nonce' ] ) ) {
|
85 |
+
return;
|
86 |
+
}
|
87 |
+
|
88 |
if ( get_post_type() != BSF_SB_POST_TYPE
|
89 |
+
|| ! wp_verify_nonce( $_POST[ BSF_SB_POST_TYPE . '-nonce' ], BSF_SB_POST_TYPE )
|
90 |
) {
|
91 |
return $post_id;
|
92 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce
|
|
4 |
Tags: custom sidebar, sidebar manager, custom widget areas, widgets, conditional sidebar
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.5
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -51,6 +51,9 @@ Other plugins we found are heavy with ugly interface, non supported, developed o
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 1.1.4 =
|
55 |
- Fix: Fixed compatibility with other plugins with respect to the admin notice.
|
56 |
|
4 |
Tags: custom sidebar, sidebar manager, custom widget areas, widgets, conditional sidebar
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 1.1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.1.5 =
|
55 |
+
- Fix: Security hardening.
|
56 |
+
|
57 |
= 1.1.4 =
|
58 |
- Fix: Fixed compatibility with other plugins with respect to the admin notice.
|
59 |
|
sidebar-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Sidebar Manager
|
4 |
* Plugin URI: http://www.brainstormforce.com
|
5 |
* Description: This is the plugin to create custom siderbars to your site.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com/
|
9 |
* Text Domain: bsfsidebars
|
@@ -25,7 +25,7 @@ define( 'BSF_SB_FILE', __FILE__ );
|
|
25 |
define( 'BSF_SB_BASE', plugin_basename( BSF_SB_FILE ) );
|
26 |
define( 'BSF_SB_DIR', plugin_dir_path( BSF_SB_FILE ) );
|
27 |
define( 'BSF_SB_URL', plugins_url( '/', BSF_SB_FILE ) );
|
28 |
-
define( 'BSF_SB_VER', '1.1.
|
29 |
define( 'BSF_SB_PREFIX', 'bsf-sb' );
|
30 |
define( 'BSF_SB_POST_TYPE', 'bsf-sidebar' );
|
31 |
|
3 |
* Plugin Name: Sidebar Manager
|
4 |
* Plugin URI: http://www.brainstormforce.com
|
5 |
* Description: This is the plugin to create custom siderbars to your site.
|
6 |
+
* Version: 1.1.5
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com/
|
9 |
* Text Domain: bsfsidebars
|
25 |
define( 'BSF_SB_BASE', plugin_basename( BSF_SB_FILE ) );
|
26 |
define( 'BSF_SB_DIR', plugin_dir_path( BSF_SB_FILE ) );
|
27 |
define( 'BSF_SB_URL', plugins_url( '/', BSF_SB_FILE ) );
|
28 |
+
define( 'BSF_SB_VER', '1.1.5' );
|
29 |
define( 'BSF_SB_PREFIX', 'bsf-sb' );
|
30 |
define( 'BSF_SB_POST_TYPE', 'bsf-sidebar' );
|
31 |
|