Changeset 48479
- Timestamp:
- 07/14/2020 03:44:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/updates.js
r48451 r48479 454 454 .text( _x( 'Updated!', 'plugin' ) ); 455 455 456 wp.a11y.speak( __( 'Update completed successfully.' ) , 'polite');456 wp.a11y.speak( __( 'Update completed successfully.' ) ); 457 457 458 458 wp.updates.decrementCount( 'plugin' ); … … 599 599 .text( __( 'Installing...' ) ); 600 600 601 wp.a11y.speak( __( 'Installing... please wait.' ) , 'polite');601 wp.a11y.speak( __( 'Installing... please wait.' ) ); 602 602 603 603 // Remove previous error messages, if any. … … 635 635 .text( _x( 'Installed!', 'plugin' ) ); 636 636 637 wp.a11y.speak( __( 'Installation completed successfully.' ) , 'polite');637 wp.a11y.speak( __( 'Installation completed successfully.' ) ); 638 638 639 639 $document.trigger( 'wp-plugin-install-success', response ); … … 769 769 .text( __( 'Run Importer' ) ); 770 770 771 wp.a11y.speak( __( 'Installation completed successfully.' ) , 'polite');771 wp.a11y.speak( __( 'Installation completed successfully.' ) ); 772 772 773 773 $document.trigger( 'wp-importer-install-success', response ); … … 852 852 } 853 853 854 wp.a11y.speak( __( 'Deleting...' ) , 'polite');854 wp.a11y.speak( __( 'Deleting...' ) ); 855 855 856 856 $document.trigger( 'wp-plugin-deleting', args ); … … 947 947 } ); 948 948 949 wp.a11y.speak( _x( 'Deleted!', 'plugin' ) , 'polite');949 wp.a11y.speak( _x( 'Deleted!', 'plugin' ) ); 950 950 951 951 $document.trigger( 'wp-plugin-delete-success', response ); … … 1056 1056 } 1057 1057 1058 wp.a11y.speak( __( 'Updating... please wait.' ) , 'polite');1058 wp.a11y.speak( __( 'Updating... please wait.' ) ); 1059 1059 $notice.text( __( 'Updating...' ) ); 1060 1060 … … 1118 1118 1119 1119 wp.updates.addAdminNotice( _.extend( { selector: $notice }, updatedMessage ) ); 1120 wp.a11y.speak( __( 'Update completed successfully.' ) , 'polite');1120 wp.a11y.speak( __( 'Update completed successfully.' ) ); 1121 1121 1122 1122 wp.updates.decrementCount( 'theme' ); … … 1175 1175 } ); 1176 1176 1177 wp.a11y.speak( errorMessage , 'polite');1177 wp.a11y.speak( errorMessage ); 1178 1178 1179 1179 $document.trigger( 'wp-theme-update-error', response ); … … 1217 1217 .text( __( 'Installing...' ) ); 1218 1218 1219 wp.a11y.speak( __( 'Installing... please wait.' ) , 'polite');1219 wp.a11y.speak( __( 'Installing... please wait.' ) ); 1220 1220 1221 1221 // Remove previous error messages, if any. … … 1256 1256 .text( _x( 'Installed!', 'theme' ) ); 1257 1257 1258 wp.a11y.speak( __( 'Installation completed successfully.' ) , 'polite');1258 wp.a11y.speak( __( 'Installation completed successfully.' ) ); 1259 1259 1260 1260 setTimeout( function() { … … 1404 1404 } 1405 1405 1406 wp.a11y.speak( __( 'Deleting...' ) , 'polite');1406 wp.a11y.speak( __( 'Deleting...' ) ); 1407 1407 1408 1408 // Remove previous error messages, if any. … … 1467 1467 } 1468 1468 1469 wp.a11y.speak( _x( 'Deleted!', 'theme' ) , 'polite');1469 wp.a11y.speak( _x( 'Deleted!', 'theme' ) ); 1470 1470 1471 1471 $document.trigger( 'wp-theme-delete-success', response ); … … 1997 1997 } 1998 1998 1999 wp.a11y.speak( __( 'Update canceled.' ) , 'polite');1999 wp.a11y.speak( __( 'Update canceled.' ) ); 2000 2000 } ); 2001 2001 … … 2075 2075 .text( __( 'Install Now' ) ); 2076 2076 2077 wp.a11y.speak( __( 'Update canceled.' ) , 'polite');2077 wp.a11y.speak( __( 'Update canceled.' ) ); 2078 2078 } ); 2079 2079 } … … 2118 2118 .text( __( 'Install Now' ) ); 2119 2119 2120 wp.a11y.speak( __( 'Update canceled.' ) , 'polite');2120 wp.a11y.speak( __( 'Update canceled.' ) ); 2121 2121 } ); 2122 2122 } … … 2783 2783 2784 2784 $parent.find( '.notice.notice-error' ).removeClass( 'hidden' ).find( 'p' ).text( errorMessage ); 2785 wp.a11y.speak( errorMessage, ' polite' );2785 wp.a11y.speak( errorMessage, 'assertive' ); 2786 2786 return; 2787 2787 } … … 2845 2845 .text( __( 'The request could not be completed.' ) ); 2846 2846 2847 wp.a11y.speak( __( 'The request could not be completed.' ), ' polite' );2847 wp.a11y.speak( __( 'The request could not be completed.' ), 'assertive' ); 2848 2848 } ) 2849 2849 .always( function() {
Note: See TracChangeset
for help on using the changeset viewer.