Opened 2 years ago
Closed 2 years ago
#57202 closed defect (bug) (duplicate)
Why do we load the default widget classes for all sites?
Reported by: | pbearne | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Widgets | Keywords: | |
Focuses: | Cc: |
Description
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
Change History (2)
Note: See
TracTickets for help on using
tickets.
Duplicate of #55595.
dup of https://core.trac.wordpress.org/ticket/55595
closing
can't fix