Adapted Abban Dunne's multi-environment WP config.