Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Larceniii
Forked from ethitter/gist:4430520
Created January 30, 2013 06:39
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 Larceniii/4671229 to your computer and use it in GitHub Desktop.
Save Larceniii/4671229 to your computer and use it in GitHub Desktop.
Index: domain_mapping.php
===================================================================
--- domain_mapping.php (revision 646767)
+++ domain_mapping.php (working copy)
@@ -519,6 +519,10 @@
}
function domain_mapping_siteurl( $setting ) {
+ // Don't redirect customizer requests
+ if ( isset( $_SERVER['HTTP_REFERER'] ) && false !== strpos( $_SERVER['HTTP_REFERER'], 'wp-admin/customize.php' ) )
+ return $setting;
+
global $wpdb, $current_blog;
// To reduce the number of database queries, save the results the first time we encounter each blog ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment