This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implementation for WP filter 'embed_oembed_html'. | |
* Modifies any iframes in the oEmbed's HTML to use a | |
* empty src-attribute, storing the original value in | |
* the data-src-attribute. A small piece of JavaScript | |
* can restore the src-attribute later. | |
* This is particularly useful for example to prevent | |
* external sites from setting cookies without the |