diff options
Diffstat (limited to 'wp-admin/widgets.php')
| -rw-r--r-- | wp-admin/widgets.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index 4a8751d..83264e4 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -18,7 +18,7 @@ if ( isset($_GET['sidebar']) && isset($wp_registered_sidebars[$_GET['sidebar']]) $sidebar = attribute_escape( $_GET['sidebar'] ); } elseif ( is_array($wp_registered_sidebars) && !empty($wp_registered_sidebars) ) { // By default we look at the first defined sidebar - $sidebar = array_shift( array_keys($wp_registered_sidebars) ); + $sidebar = array_shift( $keys = array_keys($wp_registered_sidebars) ); } else { // If no sidebars, die. require_once( 'admin-header.php' ); @@ -317,5 +317,7 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?> <?php do_action( 'sidebar_admin_page' ); ?> +<br class="clear" /> + <?php require_once( 'admin-footer.php' ); ?> |
