[wp-trac] [WordPress Trac] #23909: Widgets settings loaded and instances registered unnecessarily (was: Widgets Settings Loaded When No-Needed)
WordPress Trac
noreply at wordpress.org
Thu Apr 30 05:07:18 UTC 2015
#23909: Widgets settings loaded and instances registered unnecessarily
--------------------------+------------------------------
Reporter: alex-ye | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.5.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Description changed by westonruter:
Old description:
> Hi, This ticket about the performance in the back-end interface .
>
> WordPress run query to get the active widgets settings in every page even
> in the dashboard ! , This makes the site admin slow especially when the
> site have many widgets !
>
> You can use '''Debug Bar''' & '''Debug Bar Extender''' plugins to check
> the queries .
New description:
The settings for all registered multi-widgets get loaded with each request
in `widgets_init`, and all widgets get registered even if they are never
used (e.g. inactive ones). As the total number of inactive widgets tend to
grow over time, the result is slower and slower page loads across all of a
WordPress install.
Ideally only the widgets returned by `wp_get_sidebars_widget()` would only
get loaded and registered, though this would have an impact on how the
widgets in the Customizer work.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23909#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list