diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js
index aca73fdd4f..453ff5f68a 100644
|
a
|
b
|
|
| 1488 | 1488 | * @param {string} response.errorMessage The error that occurred. |
| 1489 | 1489 | */ |
| 1490 | 1490 | wp.updates.deletePluginError = function( response ) { |
| 1491 | | var $plugin, $pluginUpdateRow, |
| | 1491 | var $plugin, $pluginUpdateRow, $pluginDataSlug, |
| 1492 | 1492 | pluginUpdateRow = wp.template( 'item-update-row' ), |
| 1493 | 1493 | noticeContent = wp.updates.adminNotice( { |
| 1494 | 1494 | className: 'update-message notice-error notice-alt', |
| 1495 | 1495 | message: response.errorMessage |
| 1496 | 1496 | } ); |
| 1497 | | |
| | 1497 | |
| 1498 | 1498 | if ( response.plugin ) { |
| 1499 | 1499 | $plugin = $( 'tr.inactive[data-plugin="' + response.plugin + '"]' ); |
| 1500 | | $pluginUpdateRow = $plugin.siblings( '[data-plugin="' + response.plugin + '"]' ); |
| | 1500 | $pluginUpdateRow = $plugin.siblings('[data-plugin="' + response.plugin + '"]'); |
| | 1501 | $pluginDataSlug = response.plugin; |
| | 1502 | |
| 1501 | 1503 | } else { |
| 1502 | 1504 | $plugin = $( 'tr.inactive[data-slug="' + response.slug + '"]' ); |
| 1503 | 1505 | $pluginUpdateRow = $plugin.siblings( '[data-slug="' + response.slug + '"]' ); |
| | 1506 | $pluginDataSlug = response.slug; |
| | 1507 | } |
| | 1508 | |
| | 1509 | if ( $pluginDataSlug ) { |
| | 1510 | $link = $('[data-slug="' + $pluginDataSlug + '"]').find('.row-actions a.delete'); |
| | 1511 | $link.text( $link.data( 'originaltext' ) ); |
| 1504 | 1512 | } |
| 1505 | 1513 | |
| 1506 | 1514 | if ( ! wp.updates.isValidResponse( response, 'delete' ) ) { |