diff --git src/wp-includes/js/wp-embed.js src/wp-includes/js/wp-embed.js
index 966a41f..3be0dc7 100644
|
|
|
97 | 97 | for ( i = 0; i < iframes.length; i++ ) { |
98 | 98 | source = iframes[ i ]; |
99 | 99 | |
100 | | if ( source.getAttribute( 'data-secret' ) ) { |
101 | | continue; |
| 100 | if ( ! source.getAttribute( 'data-secret' ) ) { |
| 101 | /* Add secret to iframe */ |
| 102 | secret = Math.random().toString( 36 ).substr( 2, 10 ); |
| 103 | source.src += '#?secret=' + secret; |
| 104 | source.setAttribute( 'data-secret', secret ); |
102 | 105 | } |
103 | 106 | |
104 | | /* Add secret to iframe */ |
105 | | secret = Math.random().toString( 36 ).substr( 2, 10 ); |
106 | | source.src += '#?secret=' + secret; |
107 | | source.setAttribute( 'data-secret', secret ); |
108 | | |
109 | 107 | /* Remove security attribute from iframes in IE10 and IE11. */ |
110 | 108 | if ( ( isIE10 || isIE11 ) ) { |
111 | 109 | iframeClone = source.cloneNode( true ); |