WordPress/wp-includes/rest-api/endpoints
hellofromTonya 3b68d37905 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.
Built from https://develop.svn.wordpress.org/trunk@54269


git-svn-id: http://core.svn.wordpress.org/trunk@53828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-20 21:21:09 +00:00
..
class-wp-rest-application-passwords-controller.php Application Passwords: Allow a Super Admin to set an application password on a site they're not a member of. 2022-08-11 18:24:09 +00:00
class-wp-rest-attachments-controller.php Media: revert the multi-mime feature. 2022-09-06 21:13:12 +00:00
class-wp-rest-autosaves-controller.php Autosave/REST API: Block autosaving from overwriting changes when locked from editing. 2022-09-11 22:35:08 +00:00
class-wp-rest-block-directory-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-block-pattern-categories-controller.php
class-wp-rest-block-patterns-controller.php Editor: Add post types property to wp-rest-block-patterns-controller.php. 2022-09-20 16:29:12 +00:00
class-wp-rest-block-renderer-controller.php
class-wp-rest-block-types-controller.php Coding Standards: Various alignment fixes from composer format. 2022-09-19 19:51:09 +00:00
class-wp-rest-blocks-controller.php
class-wp-rest-comments-controller.php REST API: Prime post caches in comments endpoint. 2022-07-25 02:53:13 +00:00
class-wp-rest-controller.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-rest-edit-site-export-controller.php
class-wp-rest-global-styles-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-menu-items-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-menu-locations-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-menus-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-pattern-directory-controller.php
class-wp-rest-plugins-controller.php Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:03:09 +00:00
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php Editor: Adds template types, is_wp_suggestion, and fallback template content. 2022-09-20 21:21:09 +00:00
class-wp-rest-posts-controller.php REST API: Use helper functions for building routes in more places. 2022-09-11 18:55:09 +00:00
class-wp-rest-revisions-controller.php REST API: Use helper functions for building routes in more places. 2022-09-11 18:55:09 +00:00
class-wp-rest-search-controller.php REST API: Add support for searching resources by id. 2022-09-11 21:12:11 +00:00
class-wp-rest-settings-controller.php REST API: Add support for settings to specify their own additionalProperties. 2022-09-11 23:30:10 +00:00
class-wp-rest-sidebars-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-site-health-controller.php Site Health: Introduce page cache check. 2022-08-31 22:46:11 +00:00
class-wp-rest-taxonomies-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-templates-controller.php Editor: Adds template types, is_wp_suggestion, and fallback template content. 2022-09-20 21:21:09 +00:00
class-wp-rest-terms-controller.php REST API: Use helper functions for building routes in more places. 2022-09-11 18:55:09 +00:00
class-wp-rest-themes-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-url-details-controller.php
class-wp-rest-users-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-widget-types-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-widgets-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00