wpsc_enable_wp_config_edit
wpsc_enable_wp_config_edit
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('wpsc_enable_wp_config_edit') is found 2 times:
- /wp-cache.php line 225222482249225022512252225322542255225622572258
}
$line
=
'define( \'WPCACHEHOME\', \''
. __DIR__ .
'/\' );'
;
if
( ! apply_filters(
'wpsc_enable_wp_config_edit'
, true ) ) {
echo
'<div class="notice notice-error"><h4>'
. __(
'Warning'
,
'wp-super-cache'
) .
"! "
. sprintf( __(
'Not allowed to edit %s per configuration.'
,
'wp-super-cache'
),
$global_config_file
) .
"</h4></div>"
;
return
false;
}
if
(
!
strpos
(
file_get_contents
(
$global_config_file
),
"WPCACHEHOME"
) ||
- /wp-cache.php line 374037363737373837393740374137423743374437453746
}
else
{
$global_config_file
= dirname(ABSPATH) .
'/wp-config.php'
;
}
if
( apply_filters(
'wpsc_enable_wp_config_edit'
, true ) ) {
$line
=
'define(\'WP_CACHE\', true);'
;
if
(
strpos
(
file_get_contents
(
$global_config_file
),
$line
) &&
(
! is_writeable_ACLSafe(
$global_config_file
) ||
! wp_cache_replace_line(
'define*\(*\'WP_CACHE\''
,
''
,
$global_config_file
)