mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
3b68d37905
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. Built from https://develop.svn.wordpress.org/trunk@54269 git-svn-id: http://core.svn.wordpress.org/trunk@53828 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-rest-application-passwords-controller.php | ||
class-wp-rest-attachments-controller.php | ||
class-wp-rest-autosaves-controller.php | ||
class-wp-rest-block-directory-controller.php | ||
class-wp-rest-block-pattern-categories-controller.php | ||
class-wp-rest-block-patterns-controller.php | ||
class-wp-rest-block-renderer-controller.php | ||
class-wp-rest-block-types-controller.php | ||
class-wp-rest-blocks-controller.php | ||
class-wp-rest-comments-controller.php | ||
class-wp-rest-controller.php | ||
class-wp-rest-edit-site-export-controller.php | ||
class-wp-rest-global-styles-controller.php | ||
class-wp-rest-menu-items-controller.php | ||
class-wp-rest-menu-locations-controller.php | ||
class-wp-rest-menus-controller.php | ||
class-wp-rest-pattern-directory-controller.php | ||
class-wp-rest-plugins-controller.php | ||
class-wp-rest-post-statuses-controller.php | ||
class-wp-rest-post-types-controller.php | ||
class-wp-rest-posts-controller.php | ||
class-wp-rest-revisions-controller.php | ||
class-wp-rest-search-controller.php | ||
class-wp-rest-settings-controller.php | ||
class-wp-rest-sidebars-controller.php | ||
class-wp-rest-site-health-controller.php | ||
class-wp-rest-taxonomies-controller.php | ||
class-wp-rest-templates-controller.php | ||
class-wp-rest-terms-controller.php | ||
class-wp-rest-themes-controller.php | ||
class-wp-rest-url-details-controller.php | ||
class-wp-rest-users-controller.php | ||
class-wp-rest-widget-types-controller.php | ||
class-wp-rest-widgets-controller.php |