[wp-trac] [WordPress Trac] #49991: PHP Warnings on invalid requests to wp-json/oembed/1.0/embed
WordPress Trac
noreply at wordpress.org
Fri Apr 24 05:09:39 UTC 2020
#49991: PHP Warnings on invalid requests to wp-json/oembed/1.0/embed
--------------------------+------------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
--------------------------+------------------------------
Comment (by TimothyBlynJacobs):
Hm, the `type` should be sufficient. `rest_validate_value_from_schema`
does an `is_string` check. That whole check should be identical to:
{{{
{
"type": "string",
"format": "uri"
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49991#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list