mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-06-05 15:08:34 +09:00
Account for numeric sidebars.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user