From df9d590cbc2d41a15a089d3b7be270b560303075 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 28 Apr 2007 17:04:16 +0000 Subject: [PATCH] Fix widget control registration where id is not passed in. git-svn-id: http://svn.automattic.com/wordpress/trunk@5341 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/widgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 878981c744..534451e0bf 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -131,8 +131,8 @@ function register_widget_control($name, $control_callback, $width = 300, $height $height = (int) $height > 60 ? (int) $height + 40 : 240; if ( empty($control_callback) ) - unset($wp_registered_widget_controls[$name]); - elseif ( !isset($wp_registered_widget_controls[$name]) || !$wp_register_widget_defaults ) + unset($wp_registered_widget_controls[$id]); + elseif ( !isset($wp_registered_widget_controls[$id]) || !$wp_register_widget_defaults ) $wp_registered_widget_controls[$id] = array( 'name' => $name, 'id' => $id,