Make WordPress Core


Ignore:
Timestamp:
01/30/2025 10:48:37 PM (3 months ago)
Author:
peterwilsoncc
Message:

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.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.