[wp-trac] [WordPress Trac] #55595: Consider only registering widgets on themes that supports widgets
WordPress Trac
noreply at wordpress.org
Thu Oct 5 15:58:09 UTC 2023
#55595: Consider only registering widgets on themes that supports widgets
--------------------------+--------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
--------------------------+--------------------------
Changes (by flixos90):
* milestone: Awaiting Review => 6.5
Comment:
Prioritizing this to work on in the 6.5 milestone.
We will need to find a way for widgets to be "lazyily" registered, i.e.
only once a widget is needed, to support the cases where even in a theme
that doesn't support widgets, `the_widget()` is called (e.g. in a block).
Potentially this can be accomplished by registering the default widgets
and firing the `widgets_init` action only once a widget is requested for
rendering.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55595#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list