Bring back old behavior for sidebar ID's. Props filosofo. see #4169

git-svn-id: https://develop.svn.wordpress.org/trunk@5348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-30 02:35:28 +00:00
parent 238e8f18ec
commit fdc3ca298c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,6 @@ function register_sidebar($args = array()) {
$defaults = array(
'name' => sprintf(__('Sidebar %d'), count($wp_registered_sidebars) + 1 ),
'id' => "sidebar-$i",
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => "</li>\n",
'before_title' => '<h2 class="widgettitle">',
@ -53,6 +52,7 @@ function register_sidebar($args = array()) {
$sidebar = array_merge($defaults, $args);
if ( ! isset($sidebar['id']) ) $sidebar['id'] = sanitize_title($sidebar['name']);
$wp_registered_sidebars[$sidebar['id']] = $sidebar;
return $sidebar['id'];