Changeset 39347
- Timestamp:
- 11/23/2016 01:37:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-embed.js
r36708 r39347 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 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 106 109 107 /* Remove security attribute from iframes in IE10 and IE11. */
Note: See TracChangeset
for help on using the changeset viewer.