Skip to content

Commit e5b4c5b

Browse files
authored
Add a --skip-config flag to wp core multisite-convert (#231)
* Feat: provide support to skip config for multisite convert Provided the support to skip the configuration of wp-config file by passing the --skip-config associate param. This is already being added for multiiste install command. * Feat: Add functional tests for the --skip-config param to multisite-convert command
1 parent e3212a3 commit e5b4c5b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

features/core.feature

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,3 +381,12 @@ Feature: Manage WordPress installation
381381
Warning: Multisite constants could not be written to 'wp-config.php'. You may need to add them manually:
382382
"""
383383
And the return code should be 0
384+
385+
Scenario: Convert to WordPress multisite without adding multisite constants to wp-config file
386+
Given a WP install
387+
388+
When I run `wp core multisite-convert --skip-config`
389+
Then STDOUT should contain:
390+
"""
391+
Addition of multisite constants to 'wp-config.php' skipped. You need to add them manually:
392+
"""

src/Core_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ public function install( $args, $assoc_args ) {
449449
* [--subdomains]
450450
* : If passed, the network will use subdomains, instead of subdirectories. Doesn't work with 'localhost'.
451451
*
452+
* [--skip-config]
453+
* : Don't add multisite constants to wp-config.php.
454+
*
452455
* ## EXAMPLES
453456
*
454457
* $ wp core multisite-convert

0 commit comments

Comments
 (0)