You appear to be a bot. Output may be restricted
Description
Usage
Tests_Filter_oEmbed_Result::test_filter_oembed_result_only_one_iframe_is_allowed();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/oembed/filterResult.php
Lines:
1 to 7 of 7
public function test_filter_oembed_result_only_one_iframe_is_allowed() { $html = '<div><iframe></iframe><iframe></iframe><p></p></div>'; $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), '' ); $this->assertSame( '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"></iframe>', $actual ); }