mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
b1db74a765
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59115 602fd350-edb4-49c9-b593-d223f7449a82