[wp-trac] [WordPress Trac] #51782: Required in REST API register_rest_route args should check for empty string
WordPress Trac
noreply at wordpress.org
Mon Nov 16 00:40:00 UTC 2020
#51782: Required in REST API register_rest_route args should check for empty string
--------------------------+-----------------------------
Reporter: khr2003 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 5.5.3
Severity: normal | Keywords: needs-patch
Focuses: rest-api |
--------------------------+-----------------------------
When setting `required` key to `true` in `register_rest_route` it will
only check for the existence of the key but not if value is empty.
I think the expectation is to check for both that the key is set with a
value (that is not empty) has been set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51782>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list