Skip to content

Commit 9966390

Browse files
authored
Merge pull request #329 from ernilambar/fix/scaffold-command-docs
2 parents 40b98b5 + ab12dee commit 9966390

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ wp scaffold
2121

2222
**EXAMPLES**
2323

24-
# Generate a new plugin with unit tests
24+
# Generate a new plugin with unit tests.
2525
$ wp scaffold plugin sample-plugin
2626
Success: Created plugin files.
2727
Success: Created test files.
2828

29-
# Generate theme based on _s
29+
# Generate theme based on _s.
3030
$ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe"
3131
Success: Created theme 'Sample Theme'.
3232

33-
# Generate code for post type registration in given theme
33+
# Generate code for post type registration in given theme.
3434
$ wp scaffold post-type movie --label=Movie --theme=simple-life
35-
Success: Created /var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php
35+
Success: Created '/var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php'.
3636

3737

3838

@@ -93,9 +93,9 @@ wp scaffold block <slug> [--title=<title>] [--dashicon=<dashicon>] [--category=<
9393

9494
**Warning: `wp scaffold block` is deprecated.**
9595

96-
The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/designers-developers/developers/packages/packages-create-block/) package.
96+
The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/) package.
9797

98-
See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/create-block/) for a complete walk-through.
98+
See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/tutorial/) for a complete walk-through.
9999

100100
**OPTIONS**
101101

@@ -275,7 +275,7 @@ The following files are generated by default:
275275
* `tests/test-sample.php` is a sample file containing the actual tests.
276276
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
277277

278-
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
278+
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
279279

280280
**ENVIRONMENT**
281281

@@ -414,7 +414,7 @@ The following files are generated by default:
414414
* `tests/test-sample.php` is a sample file containing the actual tests.
415415
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
416416

417-
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
417+
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
418418

419419
**ENVIRONMENT**
420420

src/Scaffold_Command.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
*
99
* ## EXAMPLES
1010
*
11-
* # Generate a new plugin with unit tests
11+
* # Generate a new plugin with unit tests.
1212
* $ wp scaffold plugin sample-plugin
1313
* Success: Created plugin files.
1414
* Success: Created test files.
1515
*
16-
* # Generate theme based on _s
16+
* # Generate theme based on _s.
1717
* $ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe"
1818
* Success: Created theme 'Sample Theme'.
1919
*
20-
* # Generate code for post type registration in given theme
20+
* # Generate code for post type registration in given theme.
2121
* $ wp scaffold post-type movie --label=Movie --theme=simple-life
22-
* Success: Created /var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php
22+
* Success: Created '/var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php'.
2323
*
2424
* @package wp-cli
2525
*/
@@ -206,9 +206,9 @@ private function scaffold( $slug, $assoc_args, $defaults, $subdir, $templates )
206206
*
207207
* **Warning: `wp scaffold block` is deprecated.**
208208
*
209-
* The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/designers-developers/developers/packages/packages-create-block/) package.
209+
* The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/) package.
210210
*
211-
* See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/create-block/) for a complete walk-through.
211+
* See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/tutorial/) for a complete walk-through.
212212
*
213213
* ## OPTIONS
214214
*
@@ -711,7 +711,7 @@ public function plugin( $args, $assoc_args ) {
711711
* * `tests/test-sample.php` is a sample file containing the actual tests.
712712
* * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
713713
*
714-
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
714+
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
715715
*
716716
* ## ENVIRONMENT
717717
*
@@ -764,7 +764,7 @@ public function plugin_tests( $args, $assoc_args ) {
764764
* * `tests/test-sample.php` is a sample file containing the actual tests.
765765
* * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
766766
*
767-
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
767+
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
768768
*
769769
* ## ENVIRONMENT
770770
*

0 commit comments

Comments
 (0)