From cf9f85dc8121a359d550ffa3b735fb48859eee88 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 24 Apr 2008 11:45:39 +0000 Subject: Merged with WP 2.5, revision 7806 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1260 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/widgets.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wp-admin/widgets.php') 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']]) ) : ?> +
+ -- cgit