Skip to content

Commit d1ef1de

Browse files
authored
Merge pull request #251 from ernilambar/update-command-docs
Update core commands docs
2 parents dcac4c3 + 6648829 commit d1ef1de

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,21 @@ Determines whether WordPress is installed by checking if the standard
205205
database tables are installed. Doesn't produce output; uses exit codes
206206
to communicate whether WordPress is installed.
207207

208+
**OPTIONS**
209+
208210
[--network]
209211
Check if this is a multisite installation.
210212

211213
**EXAMPLES**
212214

213-
# Bash script for checking if WordPress is not installed
215+
# Bash script for checking if WordPress is not installed.
214216

215217
if ! wp core is-installed 2>/dev/null; then
216218
# WP is not installed. Let's try installing it.
217219
wp core install
218220
fi
219221

220-
# Bash script for checking if WordPress is installed, with fallback
222+
# Bash script for checking if WordPress is installed, with fallback.
221223

222224
if wp core is-installed 2>/dev/null; then
223225
# WP is installed. Let's do some things we should only do in a confirmed WP environment.
@@ -408,6 +410,8 @@ Runs the WordPress database update procedure.
408410
wp core update-db [--network] [--dry-run]
409411
~~~
410412

413+
**OPTIONS**
414+
411415
[--network]
412416
Update databases for all sites on a network
413417

@@ -416,14 +420,14 @@ wp core update-db [--network] [--dry-run]
416420

417421
**EXAMPLES**
418422

419-
# Update the WordPress database
423+
# Update the WordPress database.
420424
$ wp core update-db
421425
Success: WordPress database upgraded successfully from db version 36686 to 35700.
422426

423-
# Update databases for all sites on a network
427+
# Update databases for all sites on a network.
424428
$ wp core update-db --network
425429
WordPress database upgraded successfully from db version 35700 to 29630 on example.com/
426-
Success: WordPress database upgraded on 123/123 sites
430+
Success: WordPress database upgraded on 123/123 sites.
427431

428432

429433

src/Core_Command.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,21 @@ function () use ( $temp ) {
346346
* database tables are installed. Doesn't produce output; uses exit codes
347347
* to communicate whether WordPress is installed.
348348
*
349+
* ## OPTIONS
350+
*
349351
* [--network]
350352
* : Check if this is a multisite installation.
351353
*
352354
* ## EXAMPLES
353355
*
354-
* # Bash script for checking if WordPress is not installed
356+
* # Bash script for checking if WordPress is not installed.
355357
*
356358
* if ! wp core is-installed 2>/dev/null; then
357359
* # WP is not installed. Let's try installing it.
358360
* wp core install
359361
* fi
360362
*
361-
* # Bash script for checking if WordPress is installed, with fallback
363+
* # Bash script for checking if WordPress is installed, with fallback.
362364
*
363365
* if wp core is-installed 2>/dev/null; then
364366
* # WP is installed. Let's do some things we should only do in a confirmed WP environment.
@@ -367,7 +369,6 @@ function () use ( $temp ) {
367369
* # Fallback if WP is not installed.
368370
* echo 'Hey Friend, you are in the wrong spot. Move in to your WordPress directory and try again.'
369371
* fi
370-
371372
*
372373
* @subcommand is-installed
373374
*/
@@ -1223,6 +1224,8 @@ public function update( $args, $assoc_args ) {
12231224
/**
12241225
* Runs the WordPress database update procedure.
12251226
*
1227+
* ## OPTIONS
1228+
*
12261229
* [--network]
12271230
* : Update databases for all sites on a network
12281231
*
@@ -1231,14 +1234,14 @@ public function update( $args, $assoc_args ) {
12311234
*
12321235
* ## EXAMPLES
12331236
*
1234-
* # Update the WordPress database
1237+
* # Update the WordPress database.
12351238
* $ wp core update-db
12361239
* Success: WordPress database upgraded successfully from db version 36686 to 35700.
12371240
*
1238-
* # Update databases for all sites on a network
1241+
* # Update databases for all sites on a network.
12391242
* $ wp core update-db --network
12401243
* WordPress database upgraded successfully from db version 35700 to 29630 on example.com/
1241-
* Success: WordPress database upgraded on 123/123 sites
1244+
* Success: WordPress database upgraded on 123/123 sites.
12421245
*
12431246
* @subcommand update-db
12441247
*/

0 commit comments

Comments
 (0)