Skip to content

Instantly share code, notes, and snippets.

@guillaumemolter
Created October 10, 2014 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumemolter/0de5b930cfdb9912cb80 to your computer and use it in GitHub Desktop.
Save guillaumemolter/0de5b930cfdb9912cb80 to your computer and use it in GitHub Desktop.
Modify wp-config.php for versioning and colloboration by replacing the standard DB_* & WP_DEBUG configs by the following lines.
<?php
/* local-settings.php is gitignored so you can put local config in it see - https://gist.github.com/guillaumemolter/2d746cda246ae018bd8a */
if(file_exists(ABSPATH . 'local-settings.php')){
require_once(ABSPATH . 'local-settings.php');
}
else{
die(ABSPATH . "local-settings.php is missing, please read the repo's readme.md");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment