[wp-trac] [WordPress Trac] #42179: Customizer redirects to home with ?customize_changeset_uuid

WordPress Trac noreply at wordpress.org
Thu Oct 12 07:03:56 UTC 2017


#42179: Customizer redirects to home with ?customize_changeset_uuid
-------------------------------+------------------------------
 Reporter:  alexeidos          |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:
 Severity:  normal             |  Resolution:  worksforme
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by alexeidos):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 You are totally right. I added that frame breaker and totally forgot about
 it. Thankk you so much for your help

 Replying to [comment:1 westonruter]:
 > @alexeidos You get redirected from `/wp-admin/customize.php` to the
 homepage with the `customize_changeset_uuid` and `customize_theme` params
 added to it? Do do you have any JS in your theme or plugin that tries do
 some “frame busting” logic like: `if ( window !== top ) {
 top.location.replace( window.location.href ); }`? That would cause this
 problem. You should add a check to make sure that you aren't in the
 Customizer when you do this. For example:
 >
 > {{{#!js
 > if ( window !== top && !
 /customize_changeset_uuid|customize_messenger_channel/.test(
 location.search ) ) {
 >       top.location.replace( window.location.href );
 > }
 > }}}

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


More information about the wp-trac mailing list