> You should of course do the preg_match() before calling it.

Why? I like having `modify_wp_config()` be smart enough about not adding the same `$content` twice.