mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-10 06:38:42 +02:00
A `post_format` not used by the current theme, but supported by core is not a wrong/broken piece of information. It's just not used at this point in time. Therefore we should allow setting and retrieving any of the standard post formats supported in core, even if the current theme doesn't use them. After this commit, a post's `format` value can survive a round trip through the API, which is a good general design principle for an API. Props JPry, iseulde, davidakennedy, Drivingralle. Fixes #39232. Built from https://develop.svn.wordpress.org/trunk@40120 git-svn-id: http://core.svn.wordpress.org/trunk@40057 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-rest-attachments-controller.php | ||
class-wp-rest-comments-controller.php | ||
class-wp-rest-controller.php | ||
class-wp-rest-post-statuses-controller.php | ||
class-wp-rest-post-types-controller.php | ||
class-wp-rest-posts-controller.php | ||
class-wp-rest-revisions-controller.php | ||
class-wp-rest-settings-controller.php | ||
class-wp-rest-taxonomies-controller.php | ||
class-wp-rest-terms-controller.php | ||
class-wp-rest-users-controller.php |