Merged in feature/plugins-update (pull request #9)

wp plugin updates from pantheon

* wp plugin updates from pantheon
This commit is contained in:
Tony Volpe
2023-12-15 18:08:21 +00:00
parent 28c21bf9b1
commit 779393381f
577 changed files with 154305 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
class FacetWP_Integration_WP_Rocket
{
function __construct() {
add_filter( 'rocket_exclude_defer_js', [ $this, 'get_exclusions' ] );
add_filter( 'rocket_delay_js_exclusions', [ $this, 'get_exclusions' ] );
add_filter( 'rocket_cdn_reject_files', [ $this, 'get_exclusions' ] );
}
function get_exclusions( $excluded ) {
$excluded[] = '(.*)facetwp(.*)';
$excluded[] = '(.*)maps.googleapis(.*)';
$excluded[] = '/jquery-?[0-9.]*(.min|.slim|.slim.min)?.js';
return $excluded;
}
}
if ( defined( 'WP_ROCKET_VERSION' ) ) {
new FacetWP_Integration_WP_Rocket();
}