Fix errors associated with variables not being set. see #8, #17.

This commit is contained in:
Nathan Rice
2016-04-21 11:32:39 -04:00
parent 36553a6557
commit 97fac5c57b
3 changed files with 12 additions and 5 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ function ss_inpost_metabox_save( $post_id, $post ) {
return $post->ID;
$_sidebars = array(
'_ss_sidebar' => $_POST['_ss_sidebar'],
'_ss_sidebar_alt' => $_POST['_ss_sidebar_alt'],
'_ss_sidebar' => isset( $_POST['_ss_sidebar'] ) ? $_POST['_ss_sidebar'] : '',
'_ss_sidebar_alt' => isset( $_POST['_ss_sidebar_alt'] ) ? $_POST['_ss_sidebar_alt'] : '',
);
//* store the custom fields
+4
View File
@@ -101,6 +101,10 @@ function ss_register_sidebars() {
//* Cycle through created sidebars, register them as widget areas
foreach ( (array) $_sidebars as $id => $info ) {
if ( ! isset( $info['name'] ) || ! isset( $info['description'] ) ) {
continue;
}
genesis_register_sidebar( array(
'name' => esc_html( $info['name'] ),
'id' => $id,
+6 -3
View File
@@ -2,8 +2,8 @@
Contributors: nathanrice, wpmuguru, studiopress
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
Tags: hooks, genesis, genesiswp, studiopress
Requires at least: 4.4.2
Tested up to: 4.4.2
Requires at least: 3.6
Tested up to: 4.5
Stable tag: 2.0.3
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.
@@ -37,10 +37,13 @@ Not in the way you're probably thinking. The markup surrounding the widget area
== Changelog ==
= 2.0.3 =
= 2.0.4 =
* Update for WordPress 4.4+ and Genesis 2.2.7+
* DO NOT upgrade to 2.0.3 unless you are running WordPress 4.4+ AND Genesis 2.2.7+
= 2.0.3 =
* Fix warnings and notices
= 2.0.2 =
* Change text domain, update POT file.