[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:12:01 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):

 Yeah, when I apply that change, and I make the example request, I get this
 error and no PHP warnings.


 {{{
 {
   "code": "rest_invalid_param",
   "message": "Invalid parameter(s): url",
   "data": {
     "status": 400,
     "params": {
       "url": "url is not of type string."
     }
   }
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49991#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list