Skrev om wp_register_script
This commit is contained in:
@@ -22,7 +22,7 @@ function sro_register_block() {
|
||||
wp_register_script(
|
||||
'sro-block-js',
|
||||
plugins_url('blocks/block.js', __FILE__),
|
||||
array('wp-blocks', 'wp-element', 'wp-editor'),
|
||||
array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-block-editor'),
|
||||
filemtime(plugin_dir_path(__FILE__) . 'blocks/block.js')
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user