[wp-trac] [WordPress Trac] #56467: Update @wordpress packages and backport changes from Gutenberg plugin into Core
WordPress Trac
noreply at wordpress.org
Tue Sep 20 21:19:25 UTC 2022
#56467: Update @wordpress packages and backport changes from Gutenberg plugin into
Core
--------------------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 6.1
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by hellofromTonya):
In [changeset:"54269" 54269]:
{{{
#!CommitTicketReference repository="" revision="54269"
Editor: Adds template types, `is_wp_suggestion`, and fallback template
content.
This commit improves site editor templates by:
* Adds a post meta `is_wp_suggestion` to templates created from the site
editor.
Why? To differentiate the templates created from the post editor in the
Template panel in inspector controls and the templates suggested in site
editor.
See [https://github.com/WordPress/gutenberg/pull/41387 Gutenberg PR 41387]
for more details.
* Expands the template types that can be added to the site editor to
include single custom post type and specific posts templates.
See [https://github.com/WordPress/gutenberg/pull/41189 Gutenberg PR 41189]
for more details.
* Adds fallback template content on creation in site editor:
* Introduces `get_template_hierarchy()` to get the template hierarchy
for a given template slug to be created.
* Adds a `lookup` route to `WP_REST_Templates_Controller` to get the
fallback template content.
See [https://github.com/WordPress/gutenberg/pull/42520 Gutenberg PR 42520]
for more details.
* Fixes a typo in default category template's description within
`get_default_block_template_types()`.
See [https://github.com/WordPress/gutenberg/pull/42586 Gutenberg PR 42586]
for more details.
* Changes field checks from `in_array()` to `rest_is_field_included()` in
`WP_REST_Post_Types_Controller`.
* Adds an `icon` field to `WP_REST_Post_Types_Controller`
Follow-up to [53129], [52331], [52275], [52062], [51962], [43087].
Props ntsekouras, spacedmonkey, mamaduka, mburridge, jameskoster,
bernhard-reiter, mcsf, hellofromTonya.
See #56467.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56467#comment:204>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list