Cache_Enabler_Disk::set_wp_cache_constant() checks two locations for a valid wp-config.php file, but if neither ABSPATH . '/wp-config.php' nor dirname(ABSPATH) . '/wp-config.php' exist, the is_writable() check will cause an "Undefined variable" notice.
This PR adds a default value of false and will return early if the variable either uses this default or represents a non-writable file.
Cache_Enabler_Disk::set_wp_cache_constant()
checks two locations for a validwp-config.php
file, but if neitherABSPATH . '/wp-config.php'
nordirname(ABSPATH) . '/wp-config.php'
exist, theis_writable()
check will cause an "Undefined variable" notice.This PR adds a default value of
false
and will return early if the variable either uses this default or represents a non-writable file.