Ticket #37550: 37550.patch
File 37550.patch, 3.0 KB (added by , 8 years ago) |
---|
-
src/wp-admin/js/updates.js
526 526 $card.removeClass( 'plugin-card-install-failed' ).find( '.notice.notice-error' ).remove(); 527 527 528 528 $document.trigger( 'wp-plugin-installing', args ); 529 529 530 530 return wp.updates.ajax( 'install-plugin', args ); 531 531 }; 532 532 … … 718 718 wp.a11y.speak( wp.updates.l10n.deleting, 'polite' ); 719 719 720 720 $document.trigger( 'wp-plugin-deleting', args ); 721 721 722 722 return wp.updates.ajax( 'delete-plugin', args ); 723 723 }; 724 724 … … 1043 1043 $( '.install-theme-info, [data-slug="' + args.slug + '"]' ).removeClass( 'theme-install-failed' ).find( '.notice.notice-error' ).remove(); 1044 1044 1045 1045 $document.trigger( 'wp-theme-installing', args ); 1046 1046 1047 1047 return wp.updates.ajax( 'install-theme', args ); 1048 1048 }; 1049 1049 … … 1174 1174 $( '.theme-info .update-message' ).remove(); 1175 1175 1176 1176 $document.trigger( 'wp-theme-deleting', args ); 1177 1177 1178 1178 return wp.updates.ajax( 'delete-theme', args ); 1179 1179 }; 1180 1180 … … 1556 1556 1557 1557 if ( _.isString( response ) ) { 1558 1558 error = response; 1559 } else if ( 'undefined' !== typeof response.readyState && 0 == response.readyState ) { 1560 error = wp.updates.l10n.connectionError; 1559 1561 } else if ( _.isString( response.responseText ) && '' !== response.responseText ) { 1560 1562 error = response.responseText; 1561 1563 } else if ( _.isString( response.statusText ) ) { … … 1982 1984 $bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false ); 1983 1985 1984 1986 $document.trigger( 'wp-' + type + '-bulk-' + bulkAction, itemsSelected ); 1985 1987 1986 1988 // Find all the checkboxes which have been checked. 1987 1989 itemsSelected.each( function( index, element ) { 1988 1990 var $checkbox = $( element ), -
src/wp-includes/script-loader.php
679 679 /* translators: %s: Importer name */ 680 680 'activateImporterLabel' => __( 'Run %s' ), 681 681 'unknownError' => __( 'An unknown error occurred' ), 682 'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ), 682 683 'pluginsFound' => __( 'Number of plugins found: %d' ), 683 684 'noPluginsFound' => __( 'No plugins found. Try a different search.' ), 684 685 ), -
tests/qunit/fixtures/updates.js
46 46 'activateThemeLabel': 'Activate %s', 47 47 'activateImporter': 'Run Importer', 48 48 'unknownError': 'An unknown error occurred', 49 'connectionError': 'Connection lost or the server is busy. Please try again later.', 49 50 'pluginsFound': 'Number of plugins found: %d', 50 51 'noPluginsFound': 'No plugins found. Try a different search.' 51 52 }