Bundled themes: add documentation for new onResizeARIA function.

See #31527. Props davidakennedy, lancewillett.
Built from https://develop.svn.wordpress.org/trunk@31814


git-svn-id: http://core.svn.wordpress.org/trunk@31796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2015-03-18 18:31:26 +00:00
parent 0b85f2f7b4
commit 80faa524fe
4 changed files with 19 additions and 4 deletions

View File

@ -60,7 +60,12 @@
} );
} )();
// Add or remove ARIA attributes.
/**
* @summary Add or remove ARIA attributes.
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
* @since Twenty Fifteen 1.1
*/
function onResizeARIA() {
if ( 955 > $window.width() ) {
button.attr( 'aria-expanded', 'false' );

View File

@ -121,7 +121,12 @@
} );
} );
// Add or remove ARIA attributes.
/**
* @summary Add or remove ARIA attributes.
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
* @since Twenty Fourteen 1.4
*/
function onResizeARIA() {
if ( 781 > _window.width() ) {
button.attr( 'aria-expanded', 'false' );

View File

@ -74,7 +74,12 @@
} );
} )();
// Add or remove ARIA attributes.
/**
* @summary Add or remove ARIA attributes.
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
* @since Twenty Thirteen 1.5
*/
function onResizeARIA() {
if ( 643 > _window.width() ) {
button.attr( 'aria-expanded', 'false' );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta1-31813';
$wp_version = '4.2-beta1-31814';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.