WordPress/wp-includes/rest-api
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
..
endpoints REST API/Editor: Support post formats in Query Block & Posts API. 2024-09-30 01:19:16 +00:00
fields Meta: Add label argument to register_meta function 2024-09-16 11:33:38 +00:00
search
class-wp-rest-request.php
class-wp-rest-response.php
class-wp-rest-server.php REST API: Automatically populate targetHints for the Allow header. 2024-09-17 21:52:20 +00:00