[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
Wed Feb 19 22:54:18 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: closed
Priority: normal | Milestone: 5.4
Component: REST API | Version: 4.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: docs
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"47325" 47325]:
{{{
#!CommitTicketReference repository="" revision="47325"
REST API: Warn if registering array settings without an items schema.
The documentation for register_setting has also been clarified to include
all of the supported types and the flexibility of the show_in_rest
parameter.
Fixes #42875.
Props perrywagle, dshanske, kadamwhite.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42875#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list