| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | function wordpress_cgb_block_assets() { // phpcs:ignore |
| 31 | 31 | // Register block styles for both frontend + backend. |
| 32 | 32 | wp_register_style( |
| 33 | 33 | 'wordpress-cgb-style-css', // Handle. |
| 34 | - plugins_url( 'dist/blocks.style.build.css?ver=' . CODOC_PLUGIN_VERSION, dirname( __FILE__ ) ), // Block style CSS. | |
| 34 | + plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ), // Block style CSS. | |
| 35 | 35 | array( 'wp-editor' ), // Dependency to include the CSS after it. |
| 36 | 36 | null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time. |
| 37 | 37 | ); |
| 38 | 38 | |
| @@ -38,18 +38,18 @@ | ||
| 38 | 38 | |
| 39 | 39 | // Register block editor script for backend. |
| 40 | 40 | wp_register_script( |
| 41 | 41 | 'wordpress-cgb-block-js', // Handle. |
| 42 | - plugins_url( '/dist/blocks.build.js?ver=' . CODOC_PLUGIN_VERSION, dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack. | |
| 42 | + plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack. | |
| 43 | 43 | array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), // Dependencies, defined above. |
| 44 | 44 | null, // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime — Gets file modification time. |
| 45 | 45 | true // Enqueue the script in the footer. |
| 46 | 46 | ); |
| 47 | - | |
| 47 | + | |
| 48 | 48 | // Register block editor styles for backend. |
| 49 | 49 | wp_register_style( |
| 50 | 50 | 'wordpress-cgb-block-editor-css', // Handle. |
| 51 | - plugins_url( 'dist/blocks.editor.build.css?ver=' . CODOC_PLUGIN_VERSION, dirname( __FILE__ ) ), // Block editor CSS. | |
| 51 | + plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS. | |
| 52 | 52 | array( 'wp-edit-blocks' ), // Dependency to include the CSS after it. |
| 53 | 53 | null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time. |
| 54 | 54 | ); |
| 55 | 55 | |