-
-
Save Larceniii/4671229 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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