WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/04/2019 05:11:22 PM (6 weeks ago)
Author:
whyisjake
Message:

Update wp.a11y.speak() to sanitize HTML before display.

Props iandunn, adamsilverstein, sstoqnov, peterwilsoncc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r45458 r45979  
    693693
    694694        $ver       = get_bloginfo( 'version' );
    695         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-a11y&amp;ver={$ver}'></script>\n";
     695        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-sanitize,wp-a11y&amp;ver={$ver}'></script>\n";
    696696        $expected .= "<script type='text/javascript'>\nconsole.log(\"before\");\n</script>\n";
    697697        $expected .= "<script type='text/javascript' src='http://example.com'></script>\n";
Note: See TracChangeset for help on using the changeset viewer.