[wp-trac] [WordPress Trac] #62094: /wp-json/oembed/1.0/embed returns too big thumbnail_url

WordPress Trac noreply at wordpress.org
Sun Sep 22 12:49:34 UTC 2024


#62094: /wp-json/oembed/1.0/embed returns too big thumbnail_url
--------------------------+-----------------------------
 Reporter:  colinleroy    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 function get_oembed_response_data_rich( $data, $post, $width, $height )
 uses $min_max_width (default 200-600),
 and if that size of thumbnail is not generated, the full-scale url is
 returned in thumbnail_url field (leading to too big files being sent).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62094>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list