[wp-trac] [WordPress Trac] #14876: wp_get_sidebars_widgets() assumes that widgets are enabled

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 15 02:05:43 UTC 2010


#14876: wp_get_sidebars_widgets() assumes that widgets are enabled
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  lowest        |   Milestone:  3.1
Component:  Widgets       |     Version:     
 Severity:  minor         |    Keywords:     
--------------------------+-------------------------------------------------
 When a theme does not have any sidebars defined, wp_get_sidebars_widgets()
 will return the database option anyway.

 This reveals a bug where a theme that does not have any widgets may still
 get the recent comments CSS injected into it. is_active_widget() is
 returning true because that widget was active when the sidebar option was
 last used.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14876>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list