Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed/filterResult.php

    r36708 r42343  
    66class Tests_Filter_oEmbed_Result extends WP_UnitTestCase {
    77    function test_filter_oembed_result_trusted_malicious_iframe() {
    8         $html   = '<p></p><iframe onload="alert(1)"></iframe>';
     8        $html = '<p></p><iframe onload="alert(1)"></iframe>';
    99
    1010        $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' );
Note: See TracChangeset for help on using the changeset viewer.