[wp-trac] [WordPress Trac] #59532: Avoid registering block-patterns on the frontend
WordPress Trac
noreply at wordpress.org
Wed Feb 21 18:48:46 UTC 2024
#59532: Avoid registering block-patterns on the frontend
--------------------------+--------------------------
Reporter: aristath | Owner: thekt12
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Editor | Version: 6.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: performance
--------------------------+--------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57683" 57683]:
{{{
#!CommitTicketReference repository="" revision="57683"
Editor: Load pattern content only when used.
Previously, the content for all registered patterns would get loaded on
each request when the patterns are registered. Instead, this stores the
path the pattern file during registration and reads the content the first
time the pattern is used, which is a performance optimization.
Props thekt12, spacedmonkey, gziolo, aristath, joemcgill.
Fixes #59532.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59532#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list