diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js
index 806dd62ec8..5f61c048af 100644
|
a
|
b
|
|
| 1626 | 1626 | if ( isModalOpen ) { |
| 1627 | 1627 | $( '.load-customize:visible' ).trigger( 'focus' ); |
| 1628 | 1628 | $( '.theme-info .theme-autoupdate' ).find( '.auto-update-time' ).empty(); |
| | 1629 | $( '.theme-info .theme-autoupdate' ).find( $notice ).remove(); |
| 1629 | 1630 | } else { |
| 1630 | 1631 | $theme.find( '.load-customize' ).trigger( 'focus' ); |
| 1631 | 1632 | } |
| 1632 | 1633 | } |
| 1633 | | |
| 1634 | | wp.updates.addAdminNotice( _.extend( { selector: $notice }, updatedMessage ) ); |
| | 1634 | |
| | 1635 | if ( !$theme.find('.updated-message').length ) { |
| | 1636 | wp.updates.addAdminNotice( _.extend( { selector: $notice }, updatedMessage ) ); |
| | 1637 | } |
| 1635 | 1638 | wp.a11y.speak( __( 'Update completed successfully.' ) ); |
| 1636 | 1639 | |
| 1637 | 1640 | wp.updates.decrementCount( 'theme' ); |
| … |
… |
|
| 1640 | 1643 | |
| 1641 | 1644 | // Show updated message after modal re-rendered. |
| 1642 | 1645 | if ( isModalOpen && 'customize' !== pagenow ) { |
| 1643 | | $( '.theme-info .theme-author' ).after( wp.updates.adminNotice( updatedMessage ) ); |
| | 1646 | if ( !$( '.theme-info .updated-message' ).length ) { |
| | 1647 | $( '.theme-info .theme-author' ).after( wp.updates.adminNotice( updatedMessage ) ); |
| | 1648 | } |
| 1644 | 1649 | } |
| 1645 | 1650 | }; |
| 1646 | 1651 | |