Skip to content

Commit c8db230

Browse files
committed
Compiled block added
1 parent b47cdaf commit c8db230

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

includes/MslsPlugin.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,8 @@ public function block_init() {
225225
$toLoad = [ 'wp-blocks', 'wp-element', 'wp-components' ];
226226
$toLoad[] = $pagenow === 'widgets.php' ? 'wp-edit-widgets' : 'wp-editor';
227227

228-
$status = wp_register_script( $handle, self::plugins_url( 'dist/index.js' ), $toLoad);
229-
error_log('register_block_type:' . $status );
230-
$status = register_block_type( self::plugin_dir_path('dist/msls-widget-block/block.json' ) );
231-
error_log( 'register_block_type:' . print_r( $status ) );
228+
wp_register_script( $handle, self::plugins_url( 'dist/index.js' ), $toLoad);
229+
register_block_type( self::plugin_dir_path('dist/msls-widget-block/block.json' ) );
232230
add_shortcode( 'sc_msls_widget', $callback );
233231

234232
return true;

0 commit comments

Comments
 (0)