| 1 |
<?php |
| 2 |
/** |
| 3 |
* Builder Plugin Compatibility Code |
| 4 |
* |
| 5 |
* @package Themify_Builder |
| 6 |
* @subpackage Themify_Builder/classes |
| 7 |
*/ |
| 8 |
|
| 9 |
class Themify_Builder_Plugin_Compat_CachePress { |
| 10 |
|
| 11 |
static function init() { |
| 12 |
add_filter( 'sgo_css_combine_exclude', array( __CLASS__, 'sg_css_combine_exclude' ), 99 ); |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Compatibility with SG optimizer |
| 17 |
*/ |
| 18 |
public static function sg_css_combine_exclude(array $exclude_list ):array { |
| 19 |
// Add the style handle to exclude list. |
| 20 |
$exclude_list[] = 'wp-mediaelement'; |
| 21 |
$exclude_list[] = 'media-views'; |
| 22 |
$exclude_list[] = 'buttons'; |
| 23 |
$exclude_list[] = 'dashicons'; |
| 24 |
return $exclude_list; |
| 25 |
} |
| 26 |
} |