[wp-trac] [WordPress Trac] #44704: `wp.media.view.EmbedLink` and `oembed/1.0/proxy` don't work as expected

WordPress Trac noreply at wordpress.org
Tue Aug 7 08:43:17 UTC 2018


#44704: `wp.media.view.EmbedLink` and `oembed/1.0/proxy` don't work as expected
--------------------------+------------------------------
 Reporter:  7studio       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  4.9.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by 7studio):

 @swissspidy I preferred to talk about `oembed/1.0/proxy` too because the
 REST route could not accept zero/empty value for parameters and replace
 them by default values.

 IMHO, it doesn't make sense to request content via oEmbed API with empty
 parameters (especially for YouTube and Dailymotion which return very small
 version of embeds without them). WordPress could handle/fix this developer
 mistake ;)

 But you are right, the model data of `wp.media.view.EmbedLink` isn't
 correctly set and it's the main problem.

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


More information about the wp-trac mailing list