[wp-trac] [WordPress Trac] #26616: unregister_widget not working in WordPress 3.8
WordPress Trac
noreply at wordpress.org
Fri Dec 13 22:43:13 UTC 2013
#26616: unregister_widget not working in WordPress 3.8
--------------------------+-----------------------------
Reporter: Dane Morgan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.8
Severity: normal | Keywords:
--------------------------+-----------------------------
'''Issue'''
The code
{{{
function remove_calendar_widget() {
unregister_widget('WP_Widget_Calendar');
}
add_action( 'widgets_init', 'remove_calendar_widget' );
}}}
unregisters the calendar widget on a 3.7.1 install but does not unregister
it on a 3.8 install on the same server
'''Steps'''
Add the above code to the functions.php file and open the widget
management page in the dashboard.
'''Expected results'''
The calendar widget will not be available in the widgets list.
'''What I see instead'''
The calendar widget is still there in the list.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26616>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list