Make WordPress Core

Changeset 40345


Ignore:
Timestamp:
03/28/2017 07:21:20 AM (8 years ago)
Author:
swissspidy
Message:

Customize: Prevent client-side validation from being cleared when no corresponding server-side validation is present.

See #36944.
Fixes #39770.

Merges [40319] to the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/js/customize-controls.js

    r40093 r40345  
    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                    }
Note: See TracChangeset for help on using the changeset viewer.