PluginProbe
codoc / 0.9.51
codoc v0.9.51
0.9.8.8 0.9.8.9 0.9.9 0.9.9.1 trunk 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.8.1 0.8.2 0.8.3 0.8.4 0.8.6 0.8.7 0.8.8 0.8.9 0.9 0.9.1 0.9.10 0.9.11 All 114 releases
← All changes | src/init.php +6 -6 0.9.90.9.51 View file →
@@ -29,9 +29,9 @@
29 29 */
30 30 function wordpress_cgb_block_assets() { // phpcs:ignore
31 31 // Register block styles for both frontend + backend.
32 32 wp_register_style(
33 - 'wordpress-cgb-style-css', // Handle.
33 + 'codoc-style-css', // Handle.
34 34 plugins_url( 'dist/blocks.style.build.css?ver=' . CODOC_PLUGIN_VERSION, 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 );
@@ -37,9 +37,9 @@
37 37 );
38 38
39 39 // Register block editor script for backend.
40 40 wp_register_script(
41 - 'wordpress-cgb-block-js', // Handle.
41 + 'codoc-block-js', // Handle.
42 42 plugins_url( '/dist/blocks.build.js?ver=' . CODOC_PLUGIN_VERSION, 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,9 +46,9 @@
46 46 );
47 47
48 48 // Register block editor styles for backend.
49 49 wp_register_style(
50 - 'wordpress-cgb-block-editor-css', // Handle.
50 + 'codoc-block-editor-css', // Handle.
51 51 plugins_url( 'dist/blocks.editor.build.css?ver=' . CODOC_PLUGIN_VERSION, 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 );
@@ -65,13 +65,13 @@
65 65 */
66 66 register_block_type(
67 67 'cgb/block-wordpress', array(
68 68 // Enqueue blocks.style.build.css on both frontend & backend.
69 - 'style' => 'wordpress-cgb-style-css',
69 + 'style' => 'codoc-style-css',
70 70 // Enqueue blocks.build.js in the editor only.
71 - 'editor_script' => 'wordpress-cgb-block-js',
71 + 'editor_script' => 'codoc-block-js',
72 72 // Enqueue blocks.editor.build.css in the editor only.
73 - 'editor_style' => 'wordpress-cgb-block-editor-css',
73 + 'editor_style' => 'codoc-block-editor-css',
74 74 )
75 75 );
76 76 }
77 77