diff --git a/README.md b/README.md index f28ec5dc..a63a80ab 100644 --- a/README.md +++ b/README.md @@ -21,18 +21,18 @@ wp scaffold **EXAMPLES** - # Generate a new plugin with unit tests + # Generate a new plugin with unit tests. $ wp scaffold plugin sample-plugin Success: Created plugin files. Success: Created test files. - # Generate theme based on _s + # Generate theme based on _s. $ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe" Success: Created theme 'Sample Theme'. - # Generate code for post type registration in given theme + # Generate code for post type registration in given theme. $ wp scaffold post-type movie --label=Movie --theme=simple-life - Success: Created /var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php + Success: Created '/var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php'. @@ -93,9 +93,9 @@ wp scaffold block [--title=] [--dashicon=<dashicon>] [--category=< **Warning: `wp scaffold block` is deprecated.** -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. +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. -See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/create-block/) for a complete walk-through. +See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/tutorial/) for a complete walk-through. **OPTIONS** @@ -275,7 +275,7 @@ The following files are generated by default: * `tests/test-sample.php` is a sample file containing the actual tests. * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules. -Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/). +Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/). **ENVIRONMENT** @@ -414,7 +414,7 @@ The following files are generated by default: * `tests/test-sample.php` is a sample file containing the actual tests. * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules. -Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/). +Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/). **ENVIRONMENT** diff --git a/src/Scaffold_Command.php b/src/Scaffold_Command.php index c418a011..0cbef253 100644 --- a/src/Scaffold_Command.php +++ b/src/Scaffold_Command.php @@ -8,18 +8,18 @@ * * ## EXAMPLES * - * # Generate a new plugin with unit tests + * # Generate a new plugin with unit tests. * $ wp scaffold plugin sample-plugin * Success: Created plugin files. * Success: Created test files. * - * # Generate theme based on _s + * # Generate theme based on _s. * $ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe" * Success: Created theme 'Sample Theme'. * - * # Generate code for post type registration in given theme + * # Generate code for post type registration in given theme. * $ wp scaffold post-type movie --label=Movie --theme=simple-life - * Success: Created /var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php + * Success: Created '/var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php'. * * @package wp-cli */ @@ -206,9 +206,9 @@ private function scaffold( $slug, $assoc_args, $defaults, $subdir, $templates ) * * **Warning: `wp scaffold block` is deprecated.** * - * 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. + * 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. * - * See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/create-block/) for a complete walk-through. + * See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/tutorial/) for a complete walk-through. * * ## OPTIONS * @@ -711,7 +711,7 @@ public function plugin( $args, $assoc_args ) { * * `tests/test-sample.php` is a sample file containing the actual tests. * * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules. * - * Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/). + * Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/). * * ## ENVIRONMENT * @@ -764,7 +764,7 @@ public function plugin_tests( $args, $assoc_args ) { * * `tests/test-sample.php` is a sample file containing the actual tests. * * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules. * - * Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/). + * Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/). * * ## ENVIRONMENT *