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
This commit is contained in:
ryan 2007-05-16 17:49:32 +00:00
parent 349ba3a536
commit 8da6590866
1 changed files with 2 additions and 2 deletions

View File

@ -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);