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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ for more details about how multisite works.
Installs WordPress multisite from scratch.

~~~
wp core multisite-install [--url=<url>] [--base=<url-path>] [--subdomains] --title=<site-title> --admin_user=<username> [--admin_password=<password>] --admin_email=<email> [--skip-email] [--skip-config]
wp core multisite-install [--url=<url>] [--base=<url-path>] [--subdomains] --title=<site-title> --admin_user=<username> [--admin_password=<password>] --admin_email=<email> [--locale=<locale>] [--skip-email] [--skip-config]
Comment thread
swissspidy marked this conversation as resolved.
~~~

Creates the WordPress tables in the database using the URL, title, and
Expand Down Expand Up @@ -351,6 +351,9 @@ file with the appropriate multisite rewrite rules.
--admin_email=<email>
The email address for the admin user.

[--locale=<locale>]
The locale/language for the installation (e.g. `de_DE`). Default is `en_US`.

[--skip-email]
Don't send an email notification to the new admin user.

Expand Down
2 changes: 1 addition & 1 deletion features/core-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ Feature: Install WordPress core
And a database

# The SQLite object cache drop-in might produce a "no such table: wp_options" STDERR during installation.
When I try `wp core multisite-install --url=foobar.org --title=Test --admin_user=wpcli --admin_email=admin@example.com`
When I try `wp core multisite-install --url=foobar.org --title=Test --admin_user=wpcli --admin_email=admin@example.com --locale=de_DE`
Then STDOUT should contain:
"""
Admin password:
Expand Down
5 changes: 4 additions & 1 deletion src/Core_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ public function multisite_convert( $args, $assoc_args ) {
* --admin_email=<email>
* : The email address for the admin user.
*
* [--locale=<locale>]
* : The locale/language for the installation (e.g. `de_DE`). Default is `en_US`.
*
* [--skip-email]
* : Don't send an email notification to the new admin user.
*
Expand All @@ -621,7 +624,7 @@ public function multisite_convert( $args, $assoc_args ) {
* @subcommand multisite-install
*
* @param string[] $args Positional arguments. Unused.
* @param array{url?: string, base: string, subdomains?: bool, title: string, admin_user: string, admin_password?: string, admin_email: string, 'skip-email'?: bool, 'skip-config'?: bool} $assoc_args Associative arguments.
* @param array{url?: string, base: string, subdomains?: bool, title: string, admin_user: string, admin_password?: string, admin_email: string, locale?: string, 'skip-email'?: bool, 'skip-config'?: bool} $assoc_args Associative arguments.
Comment thread
swissspidy marked this conversation as resolved.
*/
public function multisite_install( $args, $assoc_args ) {
// Fix $_SERVER variables early to prevent incorrect URL detection.
Expand Down
Loading