[wp-trac] [WordPress Trac] #42433: Customize: Frontend preview link URL erroneously gets customize_autosaved param

WordPress Trac noreply at wordpress.org
Fri Nov 3 19:40:56 UTC 2017


#42433: Customize: Frontend preview link URL erroneously gets customize_autosaved
param
--------------------------+-------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.9
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-------------------
 In [41969] (for #39896) the logic for `getFrontendPreviewUrl` was updated
 to include additional query params to better reflect the current state of
 the Customizer. However, the logic for including `customize_autosaved` is
 currently broken, resulting in the param being added when it shouldn't
 (e.g. when in `saved` saved). In any case, the Preview Link control
 disables when not in a `saved` state since frontend URL is not intended to
 be shared when not in a saved state. The only reason for including
 `customize_autosaved` here was for power users who wanted to manually
 right-click on the link to view the autosaved revision on the frontend.
 However, the parameter is not getting removed when going back into the
 `saved` state, so it should just be removed for now.

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


More information about the wp-trac mailing list