WordPress.org

Make WordPress Core

Ticket #44832: wp-embed-patch.44832.diff

File wp-embed-patch.44832.diff, 404 bytes (added by dsifford, 3 years ago)

Patch (hope I did this correctly)

  • wp-includes/js/wp-embed.js

    diff --git wp-includes/js/wp-embed.js wp-includes/js/wp-embed.js
    index 16e7e8bb41..fced55559f 100644
     
    2929
    3030        window.wp.receiveEmbedMessage = function( e ) {
    3131                var data = e.data;
    32                 if ( ! ( data.secret || data.message || data.value ) ) {
     32                if ( ! data || ! ( data.secret || data.message || data.value ) ) {
    3333                        return;
    3434                }
    3535