﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4872	widget class is Array	Denis-de-Bernardy	anonymous	"when using a callback with a static class in a widget, the widget's class is set to Array. e.g.:


{{{
class foo
{
  function bar($args)
  {
    echo $args['before_widget'];
    echo 'foobar widget';
    echo $args['after_widget'];
  }
}
}}}


when using:


{{{
register_sidebar_widget('FooBar', array('foo', 'bar'));
}}}


then $args['before_widget'] returns:


{{{
<li id=""name"" class=""widget Array"">
}}}


rather than something like:

{{{

<li id=""name"" class=""widget foo_bar"">
}}}

"	defect (bug)	closed	normal		Template	2.2.2	normal	duplicate		
