Changeset 31594
- Timestamp:
- 03/01/2015 07:10:58 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/customize.php
r31533 r31594 119 119 <div class="wp-full-overlay expanded"> 120 120 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> 121 <div id="screen-reader-messages" role="status" aria-live="polite" aria-relevant="all" aria-atomic="true" class="screen-reader-text"></div>122 123 121 <div id="customize-header-actions" class="wp-full-overlay-header"> 124 122 <?php -
trunk/src/wp-admin/js/customize-widgets.js
r31570 r31594 686 686 if ( isMoveUp ) { 687 687 self.moveUp(); 688 $( '#screen-reader-messages' ).text( l10n.widgetMovedUp );688 wp.a11y.speak( l10n.widgetMovedUp ); 689 689 } else { 690 690 self.moveDown(); 691 $( '#screen-reader-messages' ).text( l10n.widgetMovedDown );691 wp.a11y.speak( l10n.widgetMovedDown ); 692 692 } 693 693 -
trunk/src/wp-admin/js/updates.js
r31470 r31594 108 108 $message.addClass( 'updating-message' ); 109 109 $message.text( wp.updates.l10n.updating ); 110 wp.a11y.speak( wp.updates.l10n.updatingMsg ); 110 111 111 112 if ( wp.updates.updateLock ) { … … 154 155 $message.removeClass( 'updating-message' ).addClass( 'updated-message' ); 155 156 $message.text( wp.updates.l10n.updated ); 157 wp.a11y.speak( wp.updates.l10n.updatedMsg ); 156 158 157 159 wp.updates.decrementCount( 'plugin' ); … … 174 176 $message.removeClass( 'updating-message' ); 175 177 $message.text( wp.updates.l10n.updateFailed ); 178 wp.a11y.speak( wp.updates.l10n.updateFailed ); 176 179 }; 177 180 … … 199 202 $message.addClass( 'updating-message' ); 200 203 $message.text( wp.updates.l10n.installing ); 204 wp.a11y.speak( wp.updates.l10n.installingMsg ); 201 205 202 206 if ( wp.updates.updateLock ) { … … 235 239 $message.removeClass( 'updating-message' ).addClass( 'updated-message button-disabled' ); 236 240 $message.text( wp.updates.l10n.installed ); 241 wp.a11y.speak( wp.updates.l10n.installedMsg ); 237 242 }; 238 243 -
trunk/src/wp-includes/script-loader.php
r31588 r31594 82 82 'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.") 83 83 ) ); 84 85 $scripts->add( 'wp-a11y', "/wp-includes/js/wp-a11y$suffix.js", array( 'jquery' ), false, 1 ); 84 86 85 87 $scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", array(), '1.6.1', 1 ); … … 381 383 $scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), 'r7', 1 ); 382 384 383 $scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore' ), false, 1 );385 $scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore', 'wp-a11y' ), false, 1 ); 384 386 $scripts->add( 'customize-loader', "/wp-includes/js/customize-loader$suffix.js", array( 'customize-base' ), false, 1 ); 385 387 $scripts->add( 'customize-preview', "/wp-includes/js/customize-preview$suffix.js", array( 'customize-base' ), false, 1 ); … … 533 535 ) ); 534 536 535 $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'jquery', 'wp-util' ) );537 $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'jquery', 'wp-util', 'wp-a11y' ) ); 536 538 did_action( 'init' ) && $scripts->localize( 'updates', '_wpUpdatesSettings', array( 537 539 'ajax_nonce' => wp_create_nonce( 'updates' ), … … 544 546 'installed' => __( 'Installed!' ), 545 547 'installFailed' => __( 'Installation failed' ), 548 'updatingMsg' => __( 'Updating... please wait.' ), 549 'installingMsg' => __( 'Installing... please wait.' ), 550 'updatedMsg' => __( 'Update completed successfully.' ), 551 'installedMsg' => __( 'Installation completed successfully.' ), 546 552 ) 547 553 ) );
Note: See TracChangeset
for help on using the changeset viewer.