Account for numeric sidebars.

This commit is contained in:
Nathan Rice
2017-03-03 10:50:52 -05:00
parent dffb99c57b
commit 6afb3213f7
@@ -231,6 +231,9 @@ class Genesis_Simple_Sidebars_Admin extends Genesis_Admin_Basic {
// Strip all but alphanumeric, sanitize with dashes.
$id = preg_replace( "/[^a-zA-Z0-9 -]+/", "", sanitize_title_with_dashes( $args['id'] ) );
// Preface numeric IDs with 'sidebar-'.
$id = is_numeric( $id ) ? 'sidebar-' . $id : $id;
$db = (array) get_option( $this->settings_field );
$new = array(