WordPress.org

Make WordPress Core

Changeset 40319


Ignore:
Timestamp:
03/23/2017 06:11:03 PM (14 months ago)
Author:
westonruter
Message:

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

See #36944.
Fixes #39770.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r40304 r40319  
    41244124                // Remove notification errors that are no longer valid.
    41254125                setting.notifications.each( function( notification ) {
    4126                     if ( 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
     4126                    if ( notification.fromServer && 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
    41274127                        setting.notifications.remove( notification.code );
    41284128                    }
Note: See TracChangeset for help on using the changeset viewer.