diff --git src/wp-includes/js/wp-embed-template.js src/wp-includes/js/wp-embed-template.js
index 60ea47d..2960991 100644
|
|
|
|
| 138 | 138 | */ |
| 139 | 139 | sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) ); |
| 140 | 140 | |
| | 141 | // Send the document's height again after the featured image has been loaded. |
| | 142 | document.querySelector( '.wp-embed-featured-image img' ).addEventListener( 'load', function() { |
| | 143 | sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) ); |
| | 144 | } ); |
| | 145 | |
| 141 | 146 | /** |
| 142 | 147 | * Detect clicks to external (_top) links. |
| 143 | 148 | */ |