diff --git a/src/init.php b/src/init.php index 310ee77e..e5757501 100644 --- a/src/init.php +++ b/src/init.php @@ -33,7 +33,7 @@ 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. @@ -41,7 +41,7 @@ function to_block_block_assets() { '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. ); @@ -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. ); /**