[wp-trac] [WordPress Trac] #62014: Editor: Add a 'format' parameter to query to enable filtering post formats in the Query Loop block
WordPress Trac
noreply at wordpress.org
Mon Sep 30 01:17:55 UTC 2024
#62014: Editor: Add a 'format' parameter to query to enable filtering post formats
in the Query Loop block
-------------------------------------------------+-------------------------
Reporter: poena | Owner:
| peterwilsoncc
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info needs- | Focuses:
testing needs-unit-tests |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"59115" 59115]:
{{{
#!CommitTicketReference repository="" revision="59115"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62014#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list