[wp-trac] [WordPress Trac] #49991: PHP Warnings on invalid requests to wp-json/oembed/1.0/embed

WordPress Trac noreply at wordpress.org
Sun May 3 22:41:08 UTC 2020


#49991: PHP Warnings on invalid requests to wp-json/oembed/1.0/embed
--------------------------+--------------------------------
 Reporter:  dd32          |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47755" 47755]:
 {{{
 #!CommitTicketReference repository="" revision="47755"
 REST API: Validate that the oembed url parameter is a string.

 This prevents a PHP warning from being issued by esc_url_raw when a non-
 string value is provided.

 Props dd32.
 Fixes #49991.
 }}}

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


More information about the wp-trac mailing list