mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Customize: Prevent client-side validation from being cleared when no corresponding server-side validation is present.
See #36944. Fixes #39770. Built from https://develop.svn.wordpress.org/trunk@40319 git-svn-id: http://core.svn.wordpress.org/trunk@40226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5aec57b209
commit
e78707aad4
@ -4123,7 +4123,7 @@
|
|||||||
|
|
||||||
// Remove notification errors that are no longer valid.
|
// Remove notification errors that are no longer valid.
|
||||||
setting.notifications.each( function( notification ) {
|
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 );
|
setting.notifications.remove( notification.code );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
4
wp-admin/js/customize-controls.min.js
vendored
4
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-40318';
|
$wp_version = '4.8-alpha-40319';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user