[wp-trac] [WordPress Trac] #54806: Site Editor: Remote block patterns are not loaded
WordPress Trac
noreply at wordpress.org
Mon Jan 17 02:19:10 UTC 2022
#54806: Site Editor: Remote block patterns are not loaded
--------------------------+---------------------
Reporter: noisysocks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by noisysocks):
> I'm in two minds about the proposed patch in the linked pull request as
I worry it could lead to blocking HTTP requests during page load when
patterns are not needed.
Which screens don't need to load patterns? In my patch, I explicitly load
them in the site editor (`site-editor.php`) and block editor (`edit-form-
blocks.php`) which are the two places they're needed. I'm not loading them
in the widgets block editor (`widgets-form-blocks.php`) as we don't
support patterns there yet. There are no other calls to `→is_block_editor(
true )`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54806#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list