Changeset 36708 for trunk/src/wp-includes/embed.php
- Timestamp:
- 02/25/2016 10:22:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r36693 r36708 778 778 if ( ! empty( $content[1] ) ) { 779 779 // We have a blockquote to fall back on. Hide the iframe by default. 780 $html = str_replace( '<iframe', '<iframe style=" display:none;"', $html );780 $html = str_replace( '<iframe', '<iframe style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', $html ); 781 781 $html = str_replace( '<blockquote', '<blockquote class="wp-embedded-content"', $html ); 782 782 } … … 954 954 */ 955 955 function _oembed_filter_feed_content( $content ) { 956 return str_replace( '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style=" display:none;"', '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"', $content );956 return str_replace( '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"', $content ); 957 957 } 958 958
Note: See TracChangeset
for help on using the changeset viewer.