[wp-trac] [WordPress Trac] #42179: Customizer redirects to home with ?customize_changeset_uuid
WordPress Trac
noreply at wordpress.org
Wed Oct 11 18:50:04 UTC 2017
#42179: Customizer redirects to home with ?customize_changeset_uuid
-------------------------------+------------------------------
Reporter: alexeidos | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by westonruter):
* keywords: => reporter-feedback
Comment:
@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:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list