[wp-trac] [WordPress Trac] #42414: Customize: Call to history.replaceState() before DOM ready in customizer preview causes error

WordPress Trac noreply at wordpress.org
Thu Nov 2 05:31:51 UTC 2017


#42414: Customize: Call to history.replaceState() before DOM ready in customizer
preview causes error
-------------------------------------------+--------------------------
 Reporter:  westonruter                    |       Owner:  westonruter
     Type:  defect (bug)                   |      Status:  accepted
 Priority:  normal                         |   Milestone:  4.9
Component:  Customize                      |     Version:  trunk
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch dev-feedback commit  |     Focuses:
-------------------------------------------+--------------------------
Changes (by westonruter):

 * keywords:   => has-patch dev-feedback commit
 * owner:   => westonruter
 * status:  new => accepted


Comment:

 The fix is trivial since the `autosave` flag is already determined via the
 presence of a `customize_autosaved` query param. Since we're parsing the
 initial query params already, we just have to re-use them.  See
 [attachment:42414.0.diff].

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


More information about the wp-trac mailing list