Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeanMarkTaylor/5341530 to your computer and use it in GitHub Desktop.
Save DeanMarkTaylor/5341530 to your computer and use it in GitHub Desktop.
WordPress MU Domain Mapping - 0.5.4.3 - Patch - Fix for theme preview not working
Index: domain_mapping.php
===================================================================
--- domain_mapping.php (revision 694026)
+++ domain_mapping.php (working copy)
@@ -695,7 +695,7 @@
return;
// don't redirect theme customizer (WP 3.4)
- if ( isset( $_POST['customize'] ) && isset( $_POST['theme'] ) && $_POST['customize'] == 'on' )
+ if ( isset( $_POST['wp_customize'], $_POST['theme'] ) && $_POST['wp_customize'] == 'on' )
return;
$protocol = is_ssl() ? 'https://' : 'http://';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment