Updates: Display the failure reason in addition to 'Update Failed', allows for debugging by site owners.
Fixes #32435, #32473 Built from https://develop.svn.wordpress.org/trunk@32779 git-svn-id: http://core.svn.wordpress.org/trunk@32750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0eb8bfc464
commit
6eef8a8ff2
|
@ -263,7 +263,7 @@ window.wp = window.wp || {};
|
|||
$message.attr( 'aria-label', wp.updates.l10n.updateFailedLabel.replace( '%s', name ) );
|
||||
}
|
||||
$message.removeClass( 'updating-message' );
|
||||
$message.text( wp.updates.l10n.updateFailed );
|
||||
$message.html( wp.updates.l10n.updateFailed.replace( '%s', response.error ) );
|
||||
wp.a11y.speak( wp.updates.l10n.updateFailed );
|
||||
|
||||
$(document).trigger( 'wp-plugin-update-error', response );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -526,7 +526,8 @@ function wp_default_scripts( &$scripts ) {
|
|||
'l10n' => array(
|
||||
'updating' => __( 'Updating...' ),
|
||||
'updated' => __( 'Updated!' ),
|
||||
'updateFailed' => __( 'Update Failed' ),
|
||||
/* translators: Error string for a failed update */
|
||||
'updateFailed' => __( 'Update Failed: %s' ),
|
||||
/* translators: Plugin name and version */
|
||||
'updatingLabel' => __( 'Updating %s...' ),
|
||||
/* translators: Plugin name and version */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32778';
|
||||
$wp_version = '4.3-alpha-32779';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue