[wp-trac] [WordPress Trac] #51389: REST API: WP_REST_Meta_Fields::default_additional_properties_to_false assumes that the schema has properties.
WordPress Trac
noreply at wordpress.org
Thu Oct 1 18:02:52 UTC 2020
#51389: REST API: WP_REST_Meta_Fields::default_additional_properties_to_false
assumes that the schema has properties.
--------------------------+------------------------------
Reporter: austin880625 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by TimothyBlynJacobs):
Thanks for the patch @austin880625 and welcome to trac!
We could take a look at switching out that method to use the new
`rest_default_additional_properties_to_false` introduced in WordPress 5.5.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51389#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list