diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-includes/js/wp-a11y.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-includes/js/wp-a11y.js Tue Jun 09 03:35:32 2015 +0200 @@ -0,0 +1,46 @@ +window.wp = window.wp || {}; + +( function ( wp, $ ) { + 'use strict'; + + var $container; + + /** + * Update the ARIA live notification area text node. + * + * @since 4.2.0 + * + * @param {String} message + */ + function speak( message ) { + if ( $container ) { + $container.text( message ); + } + } + + /** + * Initialize wp.a11y and define ARIA live notification area. + * + * @since 4.2.0 + */ + $( document ).ready( function() { + $container = $( '#wp-a11y-speak' ); + + if ( ! $container.length ) { + $container = $( '