Ticket #34831: 34831.3.diff
File 34831.3.diff, 767 bytes (added by , 9 years ago) |
---|
-
wp-includes/js/wp-embed.js
22 22 return; 23 23 } 24 24 25 if ( /[^a-zA-Z0-9]/.test( data.secret ) ) { 26 return; 27 } 28 25 29 var iframes = document.querySelectorAll( 'iframe[data-secret="' + data.secret + '"]' ), 26 30 blockquotes = document.querySelectorAll( 'blockquote[data-secret="' + data.secret + '"]' ), 27 31 i, source, height, sourceURL, targetURL; … … 33 37 for ( i = 0; i < iframes.length; i++ ) { 34 38 source = iframes[ i ]; 35 39 40 if ( e.source !== source.contentWindow ) { 41 continue; 42 } 43 36 44 source.style.display = ''; 37 45 38 46 /* Resize the iframe on request. */