Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions features/scaffold.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Feature: WordPress code scaffolding
When I run `wp scaffold child-theme zombieland --parent_theme=umbrella --theme_name=Zombieland --author=Tallahassee --author_uri=https://wp-cli.org --theme_uri=http://www.zombieland.com`
Then the {THEME_DIR}/zombieland/style.css file should exist
And the {THEME_DIR}/zombieland/functions.php file should exist
And the {THEME_DIR}/zombieland/functions.php file should contain:
"""
wp_style_add_data( 'zombieland-style', 'rtl', 'add' );
"""
And STDOUT should be:
"""
Success: Created '{THEME_DIR}/zombieland'.
Expand Down
1 change: 1 addition & 0 deletions templates/child_theme_functions.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ function {{prefix_safe}}_parent_theme_enqueue_styles() {
array( '{{parent_theme}}-style' ),
'0.1.0'
);
wp_style_add_data( '{{slug}}-style', 'rtl', 'add' );
}