[wp-trac] [WordPress Trac] #57202: Why to we load the default widget classes for all sites?

WordPress Trac noreply at wordpress.org
Fri Nov 25 01:17:27 UTC 2022


#57202: Why to we load the default widget classes for all sites?
--------------------------+-----------------------------
 Reporter:  pbearne       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Looking at wp_maybe_load_widgets(), we load all the default widget classes
 for every site

 but in wp_widgets_add_menu we check for current_theme_supports( 'widgets'
 )

 I belive we can save resources my moving the current_theme_supports(
 'widgets' ) up into the wp_maybe_load_widgets() function

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57202>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list