From 13f7d1c21ff208efd681899f15dd21d8639b9dbc Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 23 Mar 2017 18:11:03 +0000 Subject: [PATCH] Customize: Prevent client-side validation from being cleared when no corresponding server-side validation is present. See #36944. Fixes #39770. git-svn-id: https://develop.svn.wordpress.org/trunk@40319 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index 97ab2bdad2..e8f19dd7c7 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -4123,7 +4123,7 @@ // Remove notification errors that are no longer valid. setting.notifications.each( function( notification ) { - if ( 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) { + if ( notification.fromServer && 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) { setting.notifications.remove( notification.code ); } } );