Files
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

24 lines
590 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Compatibility with Webcraftic Clearfy WordPress optimization plugin: https://wordpress.org/plugins/clearfy/
*/
class Brizy_Compatibilities_WebcrafticClearfy {
public function __construct() {
add_action( 'wbcr/factory/populate_option_js_optimize', array( $this, 'disable_js_optimize' ), 10, 1 );
}
/**
* @param $is_minify
*
* @return bool
*/
public function disable_js_optimize( $is_minify ) {
if ( isset( $_GET[Brizy_Editor::prefix('-edit')] ) || isset( $_GET[Brizy_Editor::prefix('-edit-iframe')] ) ) {
return false;
}
return $is_minify;
}
}