Skip to content

Commit b5ff524

Browse files
authored
Merge pull request #217 from wp-cli/rename-underscores-mmethod
Rename _s method to underscores and provide alias for backcompat
2 parents f8153d1 + 1104f5f commit b5ff524

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
@@ -353,8 +353,10 @@ public function block( $args, $assoc_args ) {
353353
* # Generate a theme with name "Sample Theme" and author "John Doe"
354354
* $ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe"
355355
* Success: Created theme 'Sample Theme'.
356+
*
357+
* @alias _s
356358
*/
357-
public function _s( $args, $assoc_args ) {
359+
public function underscores( $args, $assoc_args ) {
358360

359361
$theme_slug = $args[0];
360362
$theme_path = WP_CONTENT_DIR . '/themes';

0 commit comments

Comments
 (0)