[wp-trac] [WordPress Trac] #38592: Customizer preview fails to persist state query params through history.pushState() calls

WordPress Trac noreply at wordpress.org
Mon Oct 31 16:28:04 UTC 2016


#38592: Customizer preview fails to persist state query params through
history.pushState() calls
--------------------------+-----------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Customize     |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 There is a typo in [38810] for #30937 where the `injectUrlWithState`
 method fails to return the new state URL that is mutated. It is capturing
 the state data but it is not ensuring the URL gets the state params.

 Also, if the `history.pushState()` or `history.replaceState()` call is
 done before the `preview-ready` event triggers, then a JS error is likely
 to result because `wp.customize.settings` would not be defined yet. It is
 unnecessary to define anyway because the query params are in the URL to
 begin with anyway.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38592>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list