diff --git a/inc/class-block-x.php b/inc/class-block-x.php index 1ed0f9a..cd52006 100644 --- a/inc/class-block-x.php +++ b/inc/class-block-x.php @@ -35,13 +35,13 @@ public function block_x_register() { public function block_x_enqueues() { wp_enqueue_script( 'block-x', - plugin_dir_url( __FILE__ ) . './blocks/block-x/build/index.js', + plugin_dir_url( __FILE__ ) . '../blocks/block-x/build/index.js', [ 'wp-blocks', 'wp-i18n', 'wp-editor' ] ); wp_enqueue_style( 'block-x', - plugin_dir_url( __FILE__ ) . '.style/style.css', + plugin_dir_url( __FILE__ ) . '..style/style.css', [], ); } diff --git a/inc/class-block-y.php b/inc/class-block-y.php index 98171c3..068c688 100644 --- a/inc/class-block-y.php +++ b/inc/class-block-y.php @@ -34,13 +34,13 @@ public function block_y_register() { public function block_y_enqueues() { wp_enqueue_script( 'block-y', - plugin_dir_url( __FILE__ ) . './blocks/block-y/build/index.js', + plugin_dir_url( __FILE__ ) . '../blocks/block-y/build/index.js', [ 'wp-blocks', 'wp-i18n', 'wp-editor' ] ); wp_enqueue_style( 'block-y', - plugin_dir_url( __FILE__ ) . '.style/style.css', + plugin_dir_url( __FILE__ ) . '..style/style.css', [], ); }