/home/arranoyd/public_html/wp-content/plugins/brizy/compatibilities/wordpress-mu-domain-mapping.php
<?php
/**
 * Compatibility with WordPress MU Domain Mapping plugin: https://wordpress.org/plugins/wordpress-mu-domain-mapping/
 */
class Brizy_Compatibilities_WordpressMuDomainMapping {

	public function __construct() {
		add_action( 'template_redirect', array( $this, 'remove_redirect_to_mapped_domain' ), 9 );
	}

	public function remove_redirect_to_mapped_domain() {

		if (  isset( $_GET['brizy-edit'] ) || isset( $_GET['brizy-edit-iframe'] ) ) {
			remove_action( 'template_redirect', 'redirect_to_mapped_domain' );
		}
	}
}