Version Description
- Fix warnings and notices
Download this release
Release Info
Developer | nathanrice |
Plugin | Genesis Simple Sidebars |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- includes/inpost.php +2 -2
- package.json +1 -1
- plugin.php +5 -1
- readme.txt +6 -3
includes/inpost.php
CHANGED
@@ -80,8 +80,8 @@ function ss_inpost_metabox_save( $post_id, $post ) {
|
|
80 |
return $post->ID;
|
81 |
|
82 |
$_sidebars = array(
|
83 |
-
'_ss_sidebar' => $_POST['_ss_sidebar'],
|
84 |
-
'_ss_sidebar_alt' => $_POST['_ss_sidebar_alt'],
|
85 |
);
|
86 |
|
87 |
//* store the custom fields
|
80 |
return $post->ID;
|
81 |
|
82 |
$_sidebars = array(
|
83 |
+
'_ss_sidebar' => isset( $_POST['_ss_sidebar'] ) ? $_POST['_ss_sidebar'] : '',
|
84 |
+
'_ss_sidebar_alt' => isset( $_POST['_ss_sidebar_alt'] ) ? $_POST['_ss_sidebar_alt'] : '',
|
85 |
);
|
86 |
|
87 |
//* store the custom fields
|
package.json
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
"description": "Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
-
"version": "2.0.
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "genesis-simple-sidebars"
|
29 |
"description": "Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
+
"version": "2.0.3",
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "genesis-simple-sidebars"
|
plugin.php
CHANGED
@@ -9,7 +9,7 @@ Author URI: http://www.nathanrice.net/
|
|
9 |
Text Domain: genesis-simple-sidebars
|
10 |
Domain Path: /languages/
|
11 |
|
12 |
-
Version: 2.0.
|
13 |
|
14 |
License: GNU General Public License v2.0 (or later)
|
15 |
License URI: http://www.opensource.org/licenses/gpl-license.php
|
@@ -101,6 +101,10 @@ function ss_register_sidebars() {
|
|
101 |
//* Cycle through created sidebars, register them as widget areas
|
102 |
foreach ( (array) $_sidebars as $id => $info ) {
|
103 |
|
|
|
|
|
|
|
|
|
104 |
genesis_register_sidebar( array(
|
105 |
'name' => esc_html( $info['name'] ),
|
106 |
'id' => $id,
|
9 |
Text Domain: genesis-simple-sidebars
|
10 |
Domain Path: /languages/
|
11 |
|
12 |
+
Version: 2.0.3
|
13 |
|
14 |
License: GNU General Public License v2.0 (or later)
|
15 |
License URI: http://www.opensource.org/licenses/gpl-license.php
|
101 |
//* Cycle through created sidebars, register them as widget areas
|
102 |
foreach ( (array) $_sidebars as $id => $info ) {
|
103 |
|
104 |
+
if ( ! isset( $info['name'] ) || ! isset( $info['description'] ) ) {
|
105 |
+
continue;
|
106 |
+
}
|
107 |
+
|
108 |
genesis_register_sidebar( array(
|
109 |
'name' => esc_html( $info['name'] ),
|
110 |
'id' => $id,
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
-
Contributors: nathanrice, wpmuguru
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
4 |
Tags: hooks, genesis, genesiswp, studiopress
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.0.
|
8 |
|
9 |
This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Framework on a per post, per page, or per tag/category archive basis.
|
10 |
|
@@ -37,6 +37,9 @@ Not in the way you're probably thinking. The markup surrounding the widget area
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
40 |
= 2.0.2 =
|
41 |
* Change text domain, update POT file.
|
42 |
|
1 |
=== Plugin Name ===
|
2 |
+
Contributors: nathanrice, wpmuguru
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
4 |
Tags: hooks, genesis, genesiswp, studiopress
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.5
|
7 |
+
Stable tag: 2.0.3
|
8 |
|
9 |
This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Framework on a per post, per page, or per tag/category archive basis.
|
10 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 2.0.3 =
|
41 |
+
* Fix warnings and notices
|
42 |
+
|
43 |
= 2.0.2 =
|
44 |
* Change text domain, update POT file.
|
45 |
|