WordPress.org

Make WordPress Core

Ticket #39770: 39770.0.diff

File 39770.0.diff, 665 bytes (added by westonruter, 5 years ago)
  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 5987bf4ed7..f6d7359fc4 100644
     
    41224122
    41234123                                // Remove notification errors that are no longer valid.
    41244124                                setting.notifications.each( function( notification ) {
    4125                                         if ( 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
     4125                                        if ( notification.fromServer && 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
    41264126                                                setting.notifications.remove( notification.code );
    41274127                                        }
    41284128                                } );