Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Yoast SEO compatibility for Boost
4 *
5 * @package automattic/jetpack-boost
6 */
7
8namespace Automattic\Jetpack_Boost\Compatibility\Yoast;
9
10use Automattic\Jetpack_Boost\Jetpack_Boost;
11
12// Add the Critical CSS generation query arg to Yoast's allowed query args list.
13// This prevents Yoast from removing the query arg, which breaks Critical CSS generation.
14add_filter( 'Yoast\WP\SEO\allowlist_permalink_vars', array( Jetpack_Boost::class, 'whitelist_query_args' ) );