[wp-trac] [WordPress Trac] #62646: PHP Warning in REST API when post_type doesn't support post-formats, but a post-format filter is applied.
WordPress Trac
noreply at wordpress.org
Thu Jan 30 22:49:03 UTC 2025
#62646: PHP Warning in REST API when post_type doesn't support post-formats, but a
post-format filter is applied.
-------------------------------------------------+-------------------------
Reporter: dd32 | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7.2
Component: REST API | Version: 6.7
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-major dev-reviewed | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"59744" 59744]:
{{{
#!CommitTicketReference repository="" revision="59744"
REST API: Protect against fatal error for post types without format
support.
Ignore the `format` parameter introduced in WordPress 6.7 for post types
that do not support post formats. This protects against a fatal error
being thrown in later version of PHP or a warning in earlier versions of
PHP.
Follow up to r59115.
Reviewed by jorbin.
Merges [59544] to the 6.7 branch.
Props dd32, sergeybiryukov, yogeshbhutkar.
Fixes #62646.
See #62014.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62646#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list