[wp-trac] Re: [WordPress Trac] #9952: Unregistering default widgets
is not backwards compatible
WordPress Trac
wp-trac at lists.automattic.com
Thu May 28 22:39:40 GMT 2009
#9952: Unregistering default widgets is not backwards compatible
--------------------------+-------------------------------------------------
Reporter: mtdewvirus | Owner: azaozz
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: normal | Keywords: widgets
--------------------------+-------------------------------------------------
Comment(by Denis-de-Bernardy):
maybe add, much like with the admin_menu:
{{{
add_action('_widgets_init', array( &$this, '_register_widgets'));
}}}
and then:
{{{
add_action('widgets_init', array( &$this, '_register_widgets'));
}}}
and add a check to verify it's not already registered?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9952#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list