[wp-trac] [WordPress Trac] #43392: Support 'object' and 'array' types in register_meta()
WordPress Trac
noreply at wordpress.org
Wed Aug 14 19:19:18 UTC 2019
#43392: Support 'object' and 'array' types in register_meta()
-------------------------------------------------+-------------------------
Reporter: diegoliv | Owner:
| TimothyBlynJacobs
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.3
Component: Options, Meta APIs | Version: 4.9.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses: rest-api
feedback |
-------------------------------------------------+-------------------------
Comment (by joehoyle):
Personally I am against the defaulting of `additionalProperties` to
`true`, but it looks like this ship has sailed elsewhere, I _think_ it
looks like objects with arbitrary data will already pass validation and
sanitization from what I can see. So, _ok_ workaround with
`default_additional_properties_to_false`, but I think this probably should
never had been necessary.
The patch here is all using spaces I think, that should be changed to
tabs.
+1 on the patch from me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43392#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list