]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/wp-embed.js
WordPress 4.7-scripts
[autoinstalls/wordpress.git] / wp-includes / js / wp-embed.js
index 966a41f74af6d5ac53e354a0ddd7f7deb6b18ec3..3be0dc724531bbeede20bede5650f8f13e45573a 100644 (file)
                for ( i = 0; i < iframes.length; i++ ) {
                        source = iframes[ i ];
 
-                       if ( source.getAttribute( 'data-secret' ) ) {
-                               continue;
+                       if ( ! source.getAttribute( 'data-secret' ) ) {
+                               /* Add secret to iframe */
+                               secret = Math.random().toString( 36 ).substr( 2, 10 );
+                               source.src += '#?secret=' + secret;
+                               source.setAttribute( 'data-secret', secret );
                        }
 
-                       /* Add secret to iframe */
-                       secret = Math.random().toString( 36 ).substr( 2, 10 );
-                       source.src += '#?secret=' + secret;
-                       source.setAttribute( 'data-secret', secret );
-
                        /* Remove security attribute from iframes in IE10 and IE11. */
                        if ( ( isIE10 || isIE11 ) ) {
                                iframeClone = source.cloneNode( true );