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:
parent
0b85f2f7b4
commit
80faa524fe
|
@ -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() {
|
function onResizeARIA() {
|
||||||
if ( 955 > $window.width() ) {
|
if ( 955 > $window.width() ) {
|
||||||
button.attr( 'aria-expanded', 'false' );
|
button.attr( 'aria-expanded', 'false' );
|
||||||
|
|
|
@ -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() {
|
function onResizeARIA() {
|
||||||
if ( 781 > _window.width() ) {
|
if ( 781 > _window.width() ) {
|
||||||
button.attr( 'aria-expanded', 'false' );
|
button.attr( 'aria-expanded', 'false' );
|
||||||
|
|
|
@ -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() {
|
function onResizeARIA() {
|
||||||
if ( 643 > _window.width() ) {
|
if ( 643 > _window.width() ) {
|
||||||
button.attr( 'aria-expanded', 'false' );
|
button.attr( 'aria-expanded', 'false' );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue