mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-21 21:32:54 +02:00
Updates: Display the failure reason in addition to 'Update Failed', allows for debugging by site owners.
Merges the behaviour of [32779] to the 4.2 branch without a string change. See #32435, #32473 Built from https://develop.svn.wordpress.org/branches/4.2@33305 git-svn-id: http://core.svn.wordpress.org/branches/4.2@33277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c33661c857
commit
78b8290b7a
|
@ -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 + ': ' + response.error );
|
||||
wp.a11y.speak( wp.updates.l10n.updateFailed );
|
||||
|
||||
$(document).trigger( 'wp-plugin-update-error', response );
|
||||
|
|
2
wp-admin/js/updates.min.js
vendored
2
wp-admin/js/updates.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user