supercacherewriteconditions
supercacherewriteconditions
Appears in: wp-super-cache.1.10.0, wp-super-cache.1.11.0, wp-super-cache.1.12.0, wp-super-cache.1.12.1, wp-super-cache.1.12.3, wp-super-cache.1.12.4, wp-super-cache.1.6.2, wp-super-cache.1.6.4, wp-super-cache.1.6.5, wp-super-cache.1.6.7, wp-super-cache.1.6.8, wp-super-cache.1.6.9, wp-super-cache.1.7.0, wp-super-cache.1.7.1, wp-super-cache.1.7.2, wp-super-cache.1.7.3, wp-super-cache.1.7.4, wp-super-cache.1.7.7, wp-super-cache.1.7.9, wp-super-cache.1.8, wp-super-cache.1.9, wp-super-cache.1.9.1, wp-super-cache.1.9.2, wp-super-cache.1.9.3, wp-super-cache.1.9.4, wp-super-cache.2.0.0
Hook Type: filter
Displaying hooks found in version: wp-super-cache.2.0.0apply_filters('supercacherewriteconditions') is found 1 times:
- /wp-cache.php line 316131573158315931603161316231633164316531663167
$condition_rules
[] =
"RewriteCond %{HTTP_USER_AGENT} !^.*("
.
addcslashes
(
str_replace
(
', '
,
'|'
,
$wp_cache_mobile_browsers
),
' '
) .
").* [NC]"
;
if
( isset(
$wp_cache_mobile_prefixes
) &&
""
!=
$wp_cache_mobile_prefixes
)
$condition_rules
[] =
"RewriteCond %{HTTP_USER_AGENT} !^("
.
addcslashes
(
str_replace
(
', '
,
'|'
,
$wp_cache_mobile_prefixes
),
' '
) .
").* [NC]"
;
}
$condition_rules
= apply_filters(
'supercacherewriteconditions'
,
$condition_rules
);
$rules
=
"<IfModule mod_rewrite.c>\n"
;
$rules
.=
"RewriteEngine On\n"
;
$rules
.=
"RewriteBase $home_root\n"
;
// props Chris Messina
$rules
.=
"#If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible\n"
;
if
( isset(
$wp_cache_disable_utf8
) == false ||
$wp_cache_disable_utf8
== 0 ) {