Changeset 38205
- Timestamp:
- 08/05/2016 07:27:56 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r38185 r38205 632 632 ?> 633 633 <script id="tmpl-wp-updates-admin-notice" type="text/html"> 634 <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{ { data.message }}}</p></div>634 <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{ data.message }}</p></div> 635 635 </script> 636 636 <script id="tmpl-wp-bulk-updates-admin-notice" type="text/html"> -
trunk/src/wp-admin/js/updates.js
r38199 r38205 1563 1563 } 1564 1564 1565 if ( _.isString( response ) ) { 1565 if ( _.isString( response ) && '-1' === response ) { 1566 error = wp.updates.l10n.nonceError; 1567 } else if ( _.isString( response ) ) { 1566 1568 error = response; 1569 } else if ( 'undefined' !== typeof response.readyState && 0 === response.readyState ) { 1570 error = wp.updates.l10n.connectionError; 1567 1571 } else if ( _.isString( response.responseText ) && '' !== response.responseText ) { 1568 1572 error = response.responseText; … … 1585 1589 } 1586 1590 1591 // Messages are escaped, remove HTML tags to make them more readable. 1592 error = error.replace( /<[\/a-z][^<>]*>/gi, '' ); 1587 1593 errorMessage = errorMessage.replace( '%s', error ); 1588 1594 -
trunk/src/wp-includes/script-loader.php
r38203 r38205 678 678 'activateImporterLabel' => __( 'Run %s' ), 679 679 'unknownError' => __( 'An unknown error occurred' ), 680 'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ), 681 'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ), 680 682 'pluginsFound' => __( 'Number of plugins found: %d' ), 681 683 'noPluginsFound' => __( 'No plugins found. Try a different search.' ), -
trunk/tests/qunit/fixtures/updates.js
r38119 r38205 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.', 50 'nonceError': 'An error has occurred. Please reload the page and try again.', 49 51 'pluginsFound': 'Number of plugins found: %d', 50 52 'noPluginsFound': 'No plugins found. Try a different search.'
Note: See TracChangeset
for help on using the changeset viewer.