Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#45900 new defect (bug)

Twenty Nineteen: WordPress embed width does not match between front and back end

Reported by: kjellr's profile kjellr Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0.2
Component: Bundled Theme Keywords: needs-testing
Focuses: Cc:

Description

As originally reported by @bph on the Twenty Nineteen GitHub repository:

https://github.com/WordPress/twentynineteen/issues/736

It's possible this applies to more types of embeds as well.


Editor Screenshots

Normal
https://cldup.com/BHgla9VUPO-1200x1200.png

Wide
https://cldup.com/Ux-6Cf5s92-1200x1200.png

Full
https://cldup.com/aHoyAtD_gQ-3000x3000.png


Front End Screenshots:

Normal
https://cldup.com/3qmWq9UaLu-3000x3000.png

Wide
https://cldup.com/3qmWq9UaLu-3000x3000.png

Full
https://cldup.com/OeugId-DEO-3000x3000.png

Change History (1)

#1 @swissspidy
5 years ago

If you look at get_oembed_response_data(), WordPress embeds have a default max width of 600px, which is what you see on the front end.

That max width should be respected, so the width as shown in the editor screenshots are wrong IMO.

Note: See TracTickets for help on using tickets.