Skip to content
Commit 2fa9dc35 authored by Weston Ruter's avatar Weston Ruter
Browse files

Customize: Make sure theme switch blocking in the Customizer is consistently...

Customize: Make sure theme switch blocking in the Customizer is consistently applied when changeset is drafted/scheduled.

* Consider both `selectedChangesetStatus` and `changesetStatus` states when deciding to disable.
* Factor out common logic into `canSwitchTheme` function on `ThemesPanel`.
* Keep Live Preview and Install buttons disabled in Themes controls and detail overlays when appropriate.

Props westonruter, dlh.
Amends [41788].
See #42126, #37661, #39896.
Fixes #42406.

Built from https://develop.svn.wordpress.org/trunk@42113


git-svn-id: https://core.svn.wordpress.org/trunk@41942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 1038a7be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment