Updates: Display the failure reason in addition to 'Update Failed', allows for debugging by site owners.
Fixes #32435, #32473 git-svn-id: https://develop.svn.wordpress.org/trunk@32779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a33c20515
commit
a5ed63c86f
@ -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 );
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user