From 8da6590866021cc7fcbb2110ce19b3dc16ea4a59 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 16 May 2007 17:49:32 +0000 Subject: [PATCH] Restore crack-headed arg passing to register_sidebar_widget(). fixes #4275 for 2.3 git-svn-id: http://svn.automattic.com/wordpress/trunk@5485 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 830213bee0..8ceec9e27d 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -75,9 +75,9 @@ function register_sidebar_widget($name, $output_callback, $classname = '') { $id = sanitize_title($name); $options = array(); - if ( !empty($classname) ) + if ( !empty($classname) && is_string($classname) ) $options['classname'] = $classname; - $params = array_slice(func_get_args(), 3); + $params = array_slice(func_get_args(), 2); $args = array($id, $name, $output_callback, $options); if ( !empty($params) ) $args = array_merge($args, $params);