Make WordPress Core

Ticket #45066: 45066.hotfix.diff

File 45066.hotfix.diff, 1.4 KB (added by whyisjake, 5 years ago)

Hotfix for the failing tests.

  • src/wp-includes/script-loader.php

     
    880880                )
    881881        );
    882882
    883         $scripts->add( 'wp-sanitize', "/wp-includes/js/wp-sanitize$suffix.js", array(), false, 1 );
    884 
    885         $scripts->add( 'wp-a11y', "/wp-includes/js/wp-a11y$suffix.js", array( 'jquery', 'wp-sanitize' ), false, 1 );
    886 
    887883        $scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", array(), '1.6.1', 1 );
    888884
    889885        $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 );
  • tests/phpunit/tests/dependencies/scripts.php

     
    748748                wp_enqueue_script( $handle, '/customize-dependency.js', array( 'customize-controls' ), null );
    749749                wp_add_inline_script( $handle, 'tryCustomizeDependency()' );
    750750
    751                 // Open a buffer to get the output of `wp_print_scripts`.
    752                 ob_start();
    753751                wp_print_scripts();
    754                 $print_scripts = ob_get_clean();
     752                $print_scripts = get_echo( '_print_scripts' );
    755753
    756754                $tail = substr( $print_scripts, strrpos( $print_scripts, "<script type='text/javascript' src='/customize-dependency.js'>" ) );
    757755                $this->assertEquals( $expected_tail, $tail );