[wp-trac] [WordPress Trac] #56923: register_block_core_template_part does WP_Query even on themes that do not support it
WordPress Trac
noreply at wordpress.org
Wed Nov 9 14:07:46 UTC 2022
#56923: register_block_core_template_part does WP_Query even on themes that do not
support it
------------------------------+--------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 6.1.1
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: performance
------------------------------+--------------------------
Comment (by spacedmonkey):
@Cybr @peterwilsoncc
The issue here, is that the WP_QUery is run on all requests, even when
they are not needed. They are only needed in the site editor. I have
created a ticket to fix this issue
[https://github.com/WordPress/gutenberg/issues/45601 here]. This involves
loading the variants only when needed. This is a big change and is
unlikely to make into a point release sadly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56923#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list