I'm trying to customize WP installation and I can't add some lines I need to wp-config.php. I need them to be added on a specific point... I suspect my problem is REGEX bound as I'm still trying to get that right!
my not-working code snippet is:
Code: Select all
$o->sr("wp-config.php", "#'define\(\'WP\_DEBUG\'\,false\)\;'#", " define('WP_DEBUG',false); define('WP_CACHE', true);");