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 LiteSpeed plugin: https://wordpress.org/plugins/litespeed-cache/
*/
class Brizy_Compatibilities_LiteSpeed {
public function __construct() {
add_action( 'litespeed_init', [ $this, 'litespeed_init' ] );
}
public function litespeed_init() {
if ( isset( $_GET[ Brizy_Editor::prefix( '-edit' ) ] ) || isset( $_GET[ Brizy_Editor::prefix( '-edit-iframe' ) ] ) ) {
do_action( 'litespeed_disable_all', 'brizy edit mode' );
}
}
}