diff --git a/features/scaffold.feature b/features/scaffold.feature index a492036f..0f50a61e 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -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'. diff --git a/templates/child_theme_functions.mustache b/templates/child_theme_functions.mustache index 0879a00d..34ba77a6 100644 --- a/templates/child_theme_functions.mustache +++ b/templates/child_theme_functions.mustache @@ -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' ); }