Skip to content

Commit

Permalink
Merge pull request #10 from wptrainingteam/issue-style-example-block-…
Browse files Browse the repository at this point in the history
…style-js

fix issue with example-block-style-js
  • Loading branch information
juanmaguitar authored Dec 10, 2023
2 parents 06b910e + 4a9e547 commit 3f04a36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"phpVersion": "7.4",
"phpVersion": "8",
"port": 3333,
"core": "WordPress/WordPress#6.4",
"themes": [
"./example-block-style-js",
"./example-block-style-php",
"./example-block-stylesheet",
"./example-block-variation",
"./example-build-process",
"./example-locked-pattern",
"./example-template-part-area",
"https://downloads.wordpress.org/theme/twentytwentyfour.1.0.zip"
],
Expand Down
2 changes: 1 addition & 1 deletion example-block-style-js/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function themeslug_editor_styles() {
add_editor_style( get_stylesheet_uri() );
}

add_action( 'wp_enqueue_scripts', 'themeslug_enqueue_styles' );
add_action( 'enqueue_block_assets', 'themeslug_enqueue_styles' );

/**
* Enqueues the `style.css` file for the front end.
Expand Down

0 comments on commit 3f04a36

Please sign in to comment.