[wp-trac] [WordPress Trac] #54335: Add FSE infrastructure from Gutenberg plugin into Core
WordPress Trac
noreply at wordpress.org
Tue Dec 14 02:45:01 UTC 2021
#54335: Add FSE infrastructure from Gutenberg plugin into Core
----------------------------+------------------------------
Reporter: noisysocks | Owner: bernhard-reiter
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.9
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
----------------------------+------------------------------
Comment (by noisysocks):
In [changeset:"52365" 52365]:
{{{
#!CommitTicketReference repository="" revision="52365"
Filter custom block templates with PHP
This method calls get_block_templates once and uses block template
properties
directly for filtering. This way, we can avoid hitting the database for
each
public post type.
The previous method is useful when we already know the current post type
we
request templates for, like when using REST API.
Follows [52334].
See #54335.
Props mamaduka, youknowriad.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54335#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list