[wp-trac] [WordPress Trac] #43559: wp_ajax_add_meta() does not allow empty values
WordPress Trac
noreply at wordpress.org
Sat Mar 17 18:34:44 UTC 2018
#43559: wp_ajax_add_meta() does not allow empty values
--------------------------------------+------------------------------
Reporter: charlestonsw | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: trunk
Severity: normal | Resolution:
Keywords: has-unit-tests has-patch | Focuses: rest-api
--------------------------------------+------------------------------
Comment (by soulseekah):
Reading the REST API code, I'm pretty sure there are no limitations on the
meta value being empty. The REST API code uses the Meta API to store the
values, which gladly accepts empty values. The schema validation does not
appear to have any sort of limitations on the value.
If you have the time, please investigate the related REST API issue in a
separate issue (and link it here, if possible). This issue is for
`add_meta` and `wp_ajax_add_meta` (i.e. stuff being done in the admin).
Other than that, please feel free to try out our patches. Cheers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43559#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list