WordPress/wp-includes/rest-api/endpoints
Peter Wilson 998a74eb6f REST API/Editor: Support post formats in Query Block & Posts API.
Introduces post format support for both the Query Block with the new parameter `format`. In the `build_query_vars_from_query_block()` function, this is converted to a `post_format` taxonomy query passed to `WP_Query`.

Also introduces the `format` parameter to the REST API's Posts controller to support the feature in the Query block. The parameter type is an enumerated  string accepted the post formats supported by each post type.

Props poena, mukesh27, mamaduka, noisysocks, TimothyBlynJacobs.
Fixes #62014.

Built from https://develop.svn.wordpress.org/trunk@59115


git-svn-id: http://core.svn.wordpress.org/trunk@58511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-09-30 01:19:16 +00:00
..
class-wp-rest-application-passwords-controller.php
class-wp-rest-attachments-controller.php Docs: Correct alignment for `rest_insert_attachment` action DocBlock. 2024-08-08 02:27:18 +00:00
class-wp-rest-autosaves-controller.php
class-wp-rest-block-directory-controller.php
class-wp-rest-block-pattern-categories-controller.php Docs: Correct `@return` values for a few REST API class methods. 2024-07-10 11:12:16 +00:00
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 Docs: Correct `@return` values for a few REST API class methods. 2024-07-10 11:12:16 +00:00
class-wp-rest-font-collections-controller.php
class-wp-rest-font-faces-controller.php
class-wp-rest-font-families-controller.php
class-wp-rest-global-styles-controller.php Global Styles: allow read access to users with `edit_posts` capabilities 2024-09-18 05:19:14 +00:00
class-wp-rest-global-styles-revisions-controller.php
class-wp-rest-menu-items-controller.php Docs: Various docblock improvements and corrections. 2024-09-11 12:08:19 +00:00
class-wp-rest-menu-locations-controller.php Docs: Correct `@return` values for a few REST API class methods. 2024-07-10 11:12:16 +00:00
class-wp-rest-menus-controller.php
class-wp-rest-navigation-fallback-controller.php
class-wp-rest-pattern-directory-controller.php General: Introduce `wp_get_wp_version()` to get unmodified version. 2024-07-27 00:27:16 +00:00
class-wp-rest-plugins-controller.php Plugins: Correct the item schema for the plugins REST API endpoint. 2024-09-17 21:33:14 +00:00
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php
class-wp-rest-posts-controller.php REST API/Editor: Support post formats in Query Block & Posts API. 2024-09-30 01:19:16 +00:00
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 Docs: Correct `@return` values for a few REST API class methods. 2024-07-10 11:12:16 +00:00
class-wp-rest-template-autosaves-controller.php
class-wp-rest-template-revisions-controller.php
class-wp-rest-templates-controller.php Editor: Add plugin template registration API and improve theme overrides for plugin-registered templates 2024-09-20 02:07:12 +00:00
class-wp-rest-terms-controller.php Docs: Fix typos in various REST API DocBlocks and comments. 2024-07-11 06:24:17 +00:00
class-wp-rest-themes-controller.php
class-wp-rest-url-details-controller.php Docs: Fix typos in various REST API DocBlocks and comments. 2024-07-11 06:24:17 +00:00
class-wp-rest-users-controller.php
class-wp-rest-widget-types-controller.php
class-wp-rest-widgets-controller.php Docs: Correct `@return` values for a few REST API class methods. 2024-07-10 11:12:16 +00:00