first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?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_Editor::prefix('-edit')] ) || isset( $_GET[Brizy_Editor::prefix('-edit-iframe')] ) ) {
remove_action( 'template_redirect', 'redirect_to_mapped_domain' );
}
}
}