We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b47cdaf commit c8db230Copy full SHA for c8db230
includes/MslsPlugin.php
@@ -225,10 +225,8 @@ public function block_init() {
225
$toLoad = [ 'wp-blocks', 'wp-element', 'wp-components' ];
226
$toLoad[] = $pagenow === 'widgets.php' ? 'wp-edit-widgets' : 'wp-editor';
227
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 ) );
+ wp_register_script( $handle, self::plugins_url( 'dist/index.js' ), $toLoad);
+ register_block_type( self::plugin_dir_path('dist/msls-widget-block/block.json' ) );
232
add_shortcode( 'sc_msls_widget', $callback );
233
234
return true;
0 commit comments