Quantcast
Channel: WordPress.org Forums » [WordPress MU Domain Mapping] Support
Viewing all articles
Browse latest Browse all 3502

Customizer doesn’t work when mapped domain is different.

$
0
0

Replies: 0

Currently this check is in place:

// don’t redirect theme customizer (WP 3.4)
if ( isset( $_POST[‘customize’] ) && isset( $_POST[‘theme’] ) && $_POST[‘customize’] == ‘on’ )
return;

This doesn’t work, and you’re redirected to the mapped domain. This obviously causes issues with CORS.

Instead, something like this should be done:

// don’t redirect theme customizer (WP 3.4)
if ( is_customize_preview() )
return;

My settings for reference:
https://screencast.com/t/4EqIDpGQyR

  • This topic was modified 1 day, 2 hours ago by joshftribus.

Viewing all articles
Browse latest Browse all 3502

Trending Articles