Changeset 37093 for branches/4.4/src/wp-includes/embed.php
- Timestamp:
- 03/30/2016 10:56:44 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4/src/wp-includes/embed.php
r36060 r37093 777 777 if ( ! empty( $content[1] ) ) { 778 778 // We have a blockquote to fall back on. Hide the iframe by default. 779 $html = str_replace( '<iframe', '<iframe style=" display:none;"', $html );779 $html = str_replace( '<iframe', '<iframe style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', $html ); 780 780 $html = str_replace( '<blockquote', '<blockquote class="wp-embedded-content"', $html ); 781 781 } … … 953 953 */ 954 954 function _oembed_filter_feed_content( $content ) { 955 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 );955 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 ); 956 956 } 957 957
Note: See TracChangeset
for help on using the changeset viewer.