File "bypass.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/wp-rocket/inc/API/bypass.php
File
size: 443 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
defined('ABSPATH') || exit;
function rocket_bypass()
{
global $wp;
static $bypass = null;
if (rocket_get_constant('WP_ROCKET_IS_TESTING', false)) {
$bypass = null;
}
if (!is_null($bypass)) {
return $bypass;
}
$url = wp_parse_url(add_query_arg($wp->query_vars, home_url($wp->request)));
$bypass = isset($url['query']) && false !== strpos($url['query'], 'nowprocket');
return $bypass;
}