epiphyt / embed-privacy

Embed Privacy prevents loading of embedded external content and allows your site visitors to opt-in.
https://epiph.yt/en/embed-privacy/
GNU General Public License v2.0
19 stars 12 forks source link

Fix default aspect ratio #156

Closed MatzeKitt closed 1 year ago

MatzeKitt commented 1 year ago

Bug/Problem

The default aspect ratio of oEmbeds is 750 / 1000, which is not useful many times. Thus we need to make sure to get the proper dimensions from oEmbeds or use the default dimensions of Embed Privacy.

Steps to reproduce

  1. Add an oEmbed
  2. Check the oEmbed in the frontend

Version

1.6.3

Link

No response

Environment info

No response

Code of Conduct

MatzeKitt commented 1 year ago

Doesn’t seem to be working properly with non-default content_width settings: https://wordpress.org/support/topic/youtube-aspect-ratio-broken-in-1-6-3/#post-16354665