[wp-trac] [WordPress Trac] #44432: Sometimes, an array is passed to the get_callback provided to register_rest_field() instead of an object
WordPress Trac
noreply at wordpress.org
Thu Aug 15 20:05:40 UTC 2019
#44432: Sometimes, an array is passed to the get_callback provided to
register_rest_field() instead of an object
-------------------------------+--------------------------------
Reporter: salzano | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: reporter-feedback | Focuses:
-------------------------------+--------------------------------
Comment (by kadamwhite):
@salzano Thank you for calling this out. It does appear to my eyes that
the functionality is internally consistent and that the major oversight
was a lack of documentation. I've committed @TimothyBlynJacobs' patch to
update the documentation, and provisionally closed this as fixed; if
however you determine that there is a case we're overlooking please note
it here or message us to indicate this should be reopened and continued.
Thank you for your contribution!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44432#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list