Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions features/core.feature
Original file line number Diff line number Diff line change
Expand Up @@ -381,3 +381,12 @@ Feature: Manage WordPress installation
Warning: Multisite constants could not be written to 'wp-config.php'. You may need to add them manually:
"""
And the return code should be 0

Scenario: Convert to WordPress multisite without adding multisite constants to wp-config file
Given a WP install

When I run `wp core multisite-convert --skip-config`
Then STDOUT should contain:
"""
Addition of multisite constants to 'wp-config.php' skipped. You need to add them manually:
"""
3 changes: 3 additions & 0 deletions src/Core_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ public function install( $args, $assoc_args ) {
* [--subdomains]
* : If passed, the network will use subdomains, instead of subdirectories. Doesn't work with 'localhost'.
*
* [--skip-config]
* : Don't add multisite constants to wp-config.php.
*
* ## EXAMPLES
*
* $ wp core multisite-convert
Expand Down