[wp-trac] [WordPress Trac] #43392: Support 'object' and 'array' types in register_meta()
WordPress Trac
noreply at wordpress.org
Thu Sep 19 14:35:58 UTC 2019
#43392: Support 'object' and 'array' types in register_meta()
-------------------------------------------------+-------------------------
Reporter: diegoliv | Owner:
| TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: Options, Meta APIs | Version: 4.9.4
Severity: normal | Resolution: fixed
Keywords: has-unit-tests dev-feedback commit | Focuses: rest-api
needs-dev-note has-patch needs-docs |
-------------------------------------------------+-------------------------
Changes (by kadamwhite):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"46186" 46186]:
{{{
#!CommitTicketReference repository="" revision="46186"
REST API: Issue warning if array meta is registered without item schema.
The purpose of meta registration is to assert that the meta key will
contain a predictable value conforming to a schema, so the schema is
therefore considered to be required.
Props TimothyBlynJacobs, grapplerulrich.
Fixes #43392.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43392#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list