Skip to content

Commit

Permalink
Replaced mistakenly edited out comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaredRogers committed Oct 28, 2024
1 parent e9f3baa commit e353576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ function to_block_block_assets() {
'to_block-style-css', // Handle.
plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ), // Block style CSS.
array(), // Dependency to include the CSS after it.
null // Version: File modification time.
null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time.
);

// Register block editor script for backend.
wp_register_script(
'to_block-block-js', // Handle.
plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack.
array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), // Dependencies, defined above.
null, // Version: filemtime — Gets file modification time.
null, // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime — Gets file modification time.
true // Enqueue the script in the footer.
);

Expand All @@ -50,7 +50,7 @@ function to_block_block_assets() {
'to_block-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
null // Version: File modification time.
null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);

/**
Expand Down

0 comments on commit e353576

Please sign in to comment.