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 ed788e7432
commit 13505bdc2b
3 changed files with 12 additions and 11 deletions
+5 -1
View File
@@ -9,7 +9,7 @@ Author URI: http://www.nathanrice.net/
Text Domain: genesis-simple-sidebars
Domain Path: /languages/
Version: 2.0.2
Version: 2.0.3
License: GNU General Public License v2.0 (or later)
License URI: http://www.opensource.org/licenses/gpl-license.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,