WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/04/2019 05:22:29 PM (23 months ago)
Author:
whyisjake
Message:

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

Merges [45979] to the 5.2 branch

Props iandunn, adamsilverstein, sstoqnov, peterwilsoncc

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/tests/phpunit/tests/dependencies/scripts.php

    r44744 r45989  
    693693
    694694        $ver       = get_bloginfo( 'version' );
    695         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%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%5B%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.