Title: [Plugin: WordPress MU Domain Mapping] Theme Customizer needs exception
Last modified: August 20, 2016

---

# [Plugin: WordPress MU Domain Mapping] Theme Customizer needs exception

 *  [Jasonheffner](https://wordpress.org/support/users/jasonheffner/)
 * (@jasonheffner)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/)
 * The AJAX call for the Theme Customizer fails with a 301 error when the option
   to use “redirect the administration pages to site’s original domain” is used.
 *  [https://original.com/?customize_messenger_channel=preview&#8230](https://original.com/?customize_messenger_channel=preview&#8230);
 * redirects to
 *  [http://mapped.com/?customize_messenger_channel=preview&#8230](http://mapped.com/?customize_messenger_channel=preview&#8230);
 * but should there should probably be an exception to not rewrite this url in the
   plugin.
 * [http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/](http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Jasonheffner](https://wordpress.org/support/users/jasonheffner/)
 * (@jasonheffner)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/#post-3057050)
 * I saw you have a fix in place already in trunk, however it doesn’t seem to work
   in 3.4.2. I updated the code from
 * from
 *  // don’t redirect theme customizer (WP 3.4)
    if ( isset( $_POST[‘customize’])&&
   isset( $_POST[‘theme’] ) && $_POST[‘customize’] == ‘on’ ) return;
 * to
 *  // don’t redirect theme customizer (WP 3.4)
    if ( isset( $_POST[‘customized’])&&
   isset( $_POST[‘theme’] ) && $_POST[‘wp_customize’] == ‘on’ ) return;
 * based on the POST data.
 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/#post-3057137)
 * At what point does it fail?
 *  Thread Starter [Jasonheffner](https://wordpress.org/support/users/jasonheffner/)
 * (@jasonheffner)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/#post-3057205)
 * You get a 301/302 redirect error when the AJAX call tries to load the preview,
   and you will get a blank iframe. I found your patch in 0.5.4.3 trunk above. It
   just turns out the exception put in place had the wrong parameters for the POST
   data.
 * Here is the changeset: [http://plugins.trac.wordpress.org/changeset/543145](http://plugins.trac.wordpress.org/changeset/543145)
 * WP Core has a similar problem with Theme Changer as well if FORCE_SSL_ADMIN is
   set to true. You get a 301/302 error when it tries to load the preview since 
   it’s being redirected to non-SSL. I submitted a bug report there as well.
 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/#post-3057256)
 * Thanks 🙂 The variable name may have been changed and I didn’t catch it. AT the
   time I wrote the patch there was no d on the variable name.
 * I’ll be a couple days before I have a change to update trunk.
 *  Thread Starter [Jasonheffner](https://wordpress.org/support/users/jasonheffner/)
 * (@jasonheffner)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/#post-3057335)
 * It seems they must have also changed the last customize with wp_customize as 
   well.
 * Here is the POST parameters that I see
 * customize_messenger_channel
    customized nonce theme wp_customize

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: WordPress MU Domain Mapping] Theme Customizer needs exception’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jasonheffner](https://wordpress.org/support/users/jasonheffner/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-theme-customizer-needs-exception/#post-3057335)
 * Status: not resolved