Skip to content

Commit 1104f5f

Browse files
committed
Rename _s method to underscores and provide alias for backcompat
1 parent 6932dc3 commit 1104f5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Scaffold_Command.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,10 @@ public function block( $args, $assoc_args ) {
346346
* # Generate a theme with name "Sample Theme" and author "John Doe"
347347
* $ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe"
348348
* Success: Created theme 'Sample Theme'.
349+
*
350+
* @alias _s
349351
*/
350-
public function _s( $args, $assoc_args ) {
352+
public function underscores( $args, $assoc_args ) {
351353

352354
$theme_slug = $args[0];
353355
$theme_path = WP_CONTENT_DIR . '/themes';

0 commit comments

Comments
 (0)