[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 Dec 19 21:41:35 UTC 2024
#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 | Focuses:
--------------------------+----------------------------
Changes (by peterwilsoncc):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"59544" 59544]:
{{{
#!CommitTicketReference repository="" revision="59544"
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.
Props dd32, sergeybiryukov, yogeshbhutkar.
Fixes #62646.
See #62014.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62646#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list