[wp-trac] [WordPress Trac] #42179: Customizer redirects to home with ?customize_changeset_uuid
WordPress Trac
noreply at wordpress.org
Sat Jan 6 06:49:27 UTC 2018
#42179: Customizer redirects to home with ?customize_changeset_uuid
--------------------------+-------------------------
Reporter: alexeidos | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Comment (by gserafini):
Thanks, this worked perfectly for me as well.
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:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list