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 * All in One SEO compatibility for Boost
4 *
5 * @package automattic/jetpack-boost
6 */
7
8namespace Automattic\Jetpack_Boost\Compatibility\AIOSEO;
9
10use Automattic\Jetpack_Boost\Jetpack_Boost;
11
12// Add the Critical CSS generation query arg to the list of allowed query args of All in One SEO.
13// This prevents All in One SEO from removing the query arg, which breaks Critical CSS generation.
14add_filter( 'aioseo_unrecognized_allowed_query_args', array( Jetpack_Boost::class, 'whitelist_query_args' ) );