[wp-trac] [WordPress Trac] #42875: Registering an "array" setting for the REST API causes a "Undefined index: items" warning
WordPress Trac
noreply at wordpress.org
Fri Jan 3 18:12:30 UTC 2020
#42875: Registering an "array" setting for the REST API causes a "Undefined index:
items" warning
--------------------------------------+--------------------------------
Reporter: perrywagle | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.4
Component: REST API | Version: 4.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: docs
--------------------------------------+--------------------------------
Comment (by TimothyBlynJacobs):
I uploaded a new patch that fixes the documentation error.
Opted not to add an additional test since we do have the
`test_get_item_with_custom_array_setting` test and it isn't clear what the
assertion would be for just testing the doing it wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42875#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list