Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding WordPress table prefix configuration. #116

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

dzink
Copy link
Contributor

@dzink dzink commented Jun 26, 2017

This is so that WordPress users can name their tables something other than the default 'wp_'. It is a security best practice to not use the default 'wp_' and we want to encourage that.

Please note: this may need to be rebased for the test for the number of lines in a Wordpress script, depending on merge order.

Copy link
Contributor

@lliss lliss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests failed. I think you should add another test as well to ensure the changes to the option are respected.

Copy link
Contributor

@tortillaj tortillaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one change and make sure tests are still passing

@@ -45,6 +47,7 @@ class WordPressApp extends LAMPApp {
this.options.wpHome = options.wpHome || options.devHome || null;
this.options.wpDomain = options.wpDomain || options.devDomain || null;
this.options.updatePlugins = String(options.updatePlugins).toLowerCase() === 'true';
this.options.databasePrefix = options.databasePrefix || "wp_";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strings are single quote

This is so that WordPress users can name their tables
something other than the default 'wp_'. It is a security best
practice to not use the default 'wp_' and we want to
encourage that.
@dzink dzink force-pushed the feature/dfz/wordpress-table-prefix branch 2 times, most recently from 076a6b8 to 8b9d4fa Compare November 14, 2017 19:29
@tortillaj tortillaj merged commit 32e1c68 into master Nov 20, 2017
@tortillaj tortillaj deleted the feature/dfz/wordpress-table-prefix branch November 20, 2017 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants