@tazotodua
I’m not sure wp-config.php is the right place for adding custom code.
I feel like it’s a risk.
I’ve read the Editing wp-config.php article in the Codex but there is no info about custom code in the wp-config.php file … so I think it should be avoided.
WordPress configuration is mostly done by defining constants in the wp-config.php file. There is no mention whatsoever of custom PHP code. Yes, it’s technically possible but that does not mean you should do it …
Have you ever considered relocating the custom PHP code to another place ?
Like in a plugin or the active theme functions.php file.
Anyway the iTSec plugin Change Database Table Prefix feature is using a regex search/replace method which is used by many others … I don’t think they are ALL doing it wrong ??
That said, the regex search pattern could be tweaked to narrow down the matches…
For anyone else reading this topic, what do you think ?