Customize: Show notification error with "Your homepage displays" control when homepage and posts page are set to be the same (but not empty).

* Show global error notiafication when saving is blocked due to client-side setting invalidity.
* Refactor `wp.customize.Notifications#render()` to ensure a notification re-renders if its `message` or data changes but its `code` does not.

Props MatheusGimenez, sixhours, westonruter, karmatosed, aocean90, zoonini, michelleweber, melchoyce.
See #35210.
Fixes #21492.


git-svn-id: https://develop.svn.wordpress.org/trunk@41389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter
2017-09-19 00:45:23 +00:00
parent df1bf4a883
commit eab65862b0
3 changed files with 83 additions and 54 deletions

View File

@@ -840,6 +840,17 @@ p.customize-section-description {
/* Style for custom settings */
/**
* Static front page
*/
#customize-control-show_on_front.has-error {
margin-bottom: 0;
}
#customize-control-show_on_front.has-error .customize-control-notifications-container {
margin-top:12px;
}
/**
* Dropdowns
*/