[wp-trac] [WordPress Trac] #35657: Image height calculation not always available on body.load
WordPress Trac
noreply at wordpress.org
Sat Jun 11 11:27:39 UTC 2016
#35657: Image height calculation not always available on body.load
-------------------------------------+--------------------
Reporter: jipmoors | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.6
Component: Embeds | Version: 4.4.1
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses:
-------------------------------------+--------------------
Comment (by swissspidy):
While the proof-of-concept is very clever, I haven't seen this method
being used for images. It also makes me aware of how ugly the aspect ratio
handling is, which should probably be moved into a separate function if we
go down that road.
However, even though I like how the patch solves this without JavaScript,
I think we could fix it even easier, see [attachment:35657.diff]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35657#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list