[wp-trac] [WordPress Trac] #42406: Customize: Can't switch back to active theme once changeset is saved

WordPress Trac noreply at wordpress.org
Thu Nov 2 05:13:35 UTC 2017


#42406: Customize: Can't switch back to active theme once changeset is saved
-------------------------------------+--------------------
 Reporter:  dlh                      |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.9
Component:  Customize                |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------

Comment (by westonruter):

 @dlh I found there were some additional problems where even though I had
 saved draft and I saw the notice, I could still click on the Live Preview
 buttons. This was due to the logic for determining the theme switch
 availability not being copied out to each place where it was needed. So
 [attachment:42406.3.diff] factors out the logic into a common
 `canSwitchTheme` method to be re-used in each instance.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42406#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list