Skip to content

Commit 4ac617f

Browse files
Copilotswissspidy
andcommitted
Remove wp_style_add_data() for parent theme; keep only child theme RTL
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent c3e3dc4 commit 4ac617f

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎features/scaffold.feature‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ Feature: WordPress code scaffolding
99
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`
1010
Then the {THEME_DIR}/zombieland/style.css file should exist
1111
And the {THEME_DIR}/zombieland/functions.php file should exist
12-
And the {THEME_DIR}/zombieland/functions.php file should contain:
13-
"""
14-
wp_style_add_data( 'umbrella-style', 'rtl', 'replace' );
15-
"""
1612
And the {THEME_DIR}/zombieland/functions.php file should contain:
1713
"""
1814
wp_style_add_data( 'zombieland-style', 'rtl', 'replace' );

‎templates/child_theme_functions.mustache‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ add_action( 'wp_enqueue_scripts', '{{prefix_safe}}_parent_theme_enqueue_styles'
1414
*/
1515
function {{prefix_safe}}_parent_theme_enqueue_styles() {
1616
wp_enqueue_style( '{{parent_theme}}-style', get_template_directory_uri() . '/style.css', array(), '0.1.0' );
17-
wp_style_add_data( '{{parent_theme}}-style', 'rtl', 'replace' );
1817
wp_enqueue_style(
1918
'{{slug}}-style',
2019
get_stylesheet_directory_uri() . '/style.css',

0 commit comments

Comments
 (0)