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:
parent
349ba3a536
commit
8da6590866
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue