diff --git a/includes/inpost.php b/includes/inpost.php index 9f75364..7b99b68 100644 --- a/includes/inpost.php +++ b/includes/inpost.php @@ -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 diff --git a/plugin.php b/plugin.php index 742a985..b884246 100644 --- a/plugin.php +++ b/plugin.php @@ -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, diff --git a/readme.txt b/readme.txt index 2caec34..179cb19 100644 --- a/readme.txt +++ b/readme.txt @@ -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.