Permalink
Browse files

Changed the order in which sidebars are registered

When switching to K2 for the first time, widgets were placed in the
widgets-top sidebar. By changing the order, this no longer happens.
  • Loading branch information...
spikeyslam committed Aug 20, 2012
1 parent c222f80 commit 96b44f2bc6f5c30deb08b3f0361a3e527f74f262
Showing with 7 additions and 7 deletions.
  1. +7 −7 app/includes/pluggable.php
@@ -24,27 +24,27 @@
function k2_register_sidebars() {
register_sidebar(array(
'id' => 'widgets-top',
'name' => __('Below Page Header', 'k2'),
'description' => __('Just below the header.', 'k2'),
'id' => 'widgets-sidebar-1',
'name' => __('Sidebar 1', 'k2'),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>'
));
register_sidebar(array(
'id' => 'widgets-sidebar-1',
'name' => __('Sidebar 1', 'k2'),
'id' => 'widgets-sidebar-2',
'name' => __('Sidebar 2', 'k2'),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>'
));
register_sidebar(array(
'id' => 'widgets-sidebar-2',
'name' => __('Sidebar 2', 'k2'),
'id' => 'widgets-top',
'name' => __('Below Page Header', 'k2'),
'description' => __('Just below the header.', 'k2'),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',

0 comments on commit 96b44f2

Please sign in to comment.