diff --git a/wp-includes/js/wp-a11y.js b/wp-includes/js/wp-a11y.js index 3acca7ff99..2507cbc2f4 100644 --- a/wp-includes/js/wp-a11y.js +++ b/wp-includes/js/wp-a11y.js @@ -20,6 +20,9 @@ window.wp = window.wp || {}; // Clear previous messages to allow repeated strings being read out. clear(); + // Ensure only text is sent to screen readers. + message = $( '

' ).html( message ).text(); + if ( $containerAssertive && 'assertive' === ariaLive ) { $containerAssertive.text( message ); } else if ( $containerPolite ) { diff --git a/wp-includes/js/wp-a11y.min.js b/wp-includes/js/wp-a11y.min.js index f2ccf0c504..c0c8929fe8 100644 --- a/wp-includes/js/wp-a11y.min.js +++ b/wp-includes/js/wp-a11y.min.js @@ -1 +1 @@ -window.wp=window.wp||{},function(a,b){"use strict";function c(a,b){e(),g&&"assertive"===b?g.text(a):f&&f.text(a)}function d(a){a=a||"polite";var c=b("

",{id:"wp-a11y-speak-"+a,"aria-live":a,"aria-relevant":"additions text","aria-atomic":"true","class":"screen-reader-text wp-a11y-speak-region"});return b(document.body).append(c),c}function e(){b(".wp-a11y-speak-region").text("")}var f,g;b(document).ready(function(){f=b("#wp-a11y-speak-polite"),g=b("#wp-a11y-speak-assertive"),f.length||(f=d("polite")),g.length||(g=d("assertive"))}),a.a11y=a.a11y||{},a.a11y.speak=c}(window.wp,window.jQuery); \ No newline at end of file +window.wp=window.wp||{},function(a,b){"use strict";function c(a,c){e(),a=b("

").html(a).text(),g&&"assertive"===c?g.text(a):f&&f.text(a)}function d(a){a=a||"polite";var c=b("

",{id:"wp-a11y-speak-"+a,"aria-live":a,"aria-relevant":"additions text","aria-atomic":"true","class":"screen-reader-text wp-a11y-speak-region"});return b(document.body).append(c),c}function e(){b(".wp-a11y-speak-region").text("")}var f,g;b(document).ready(function(){f=b("#wp-a11y-speak-polite"),g=b("#wp-a11y-speak-assertive"),f.length||(f=d("polite")),g.length||(g=d("assertive"))}),a.a11y=a.a11y||{},a.a11y.speak=c}(window.wp,window.jQuery); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index 933d53ecdf..917d3f5b0b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta3-38114'; +$wp_version = '4.6-beta3-38115'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.