[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
Sat Oct 24 07:47:35 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: 5.6
Component: REST API | Version: 4.9
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses:
----------------------------------------+---------------------
Comment (by austin880625):
I changed the method used in {{{ get_registered_fields }}} into {{{
rest_default_additional_properties_to_false }}}, and since it seems to be
the only method calling {{{ default_additional_properties_to_false }}},
deleting the whole method also seems OK.
I have done {{{ npm run test:php }}} once, the result remain the same
after I made these changes. Remind me if I did anything wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51389#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list