[wp-trac] Re: [WordPress Trac] #8441: New Widget API based on
MultiWidget Class
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 17 23:12:16 GMT 2009
#8441: New Widget API based on MultiWidget Class
----------------------------+-----------------------------------------------
Reporter: thornomad | Owner: azaozz
Type: task (blessed) | Status: new
Priority: high | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: normal | Keywords: widget, plugin, multi-widget
----------------------------+-----------------------------------------------
Comment(by azaozz):
Replying to [comment:40 kretzschmar]:
> I already did this. And changing the id_base (as long as you meant the
'classname') also doesn't work.
The `id_base` is not the classname. It's the first arg passed to
WP_Widget. Check some of the widgets subclasses in default-widgets.php:
{{{
class WP_Widget_Links extends WP_Widget {
function WP_Widget_Links() {
$widget_ops = array('description' => __( "Your blogroll" )
);
$this->WP_Widget('links', __('Links'), $widget_ops);
}
}}}
In this case `'links'` is the id_base.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8441#comment:42>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list