fix random php error in site editor
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -34,7 +34,12 @@ add_action( 'enqueue_block_editor_assets', 'enqueue_editor_styles' );
|
||||
|
||||
function autonomic_theme_scripts() {
|
||||
// this is also for block styles
|
||||
wp_enqueue_script( 'autonomic-block-styles', get_theme_file_uri( '/js/block-styles.js' ), array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ), filemtime( get_theme_file_uri( '/js/block-styles.js' ) ));
|
||||
wp_enqueue_script(
|
||||
'autonomic-block-styles',
|
||||
get_template_directory() . '/js/block-styles.js',
|
||||
array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ),
|
||||
filemtime( get_template_directory() . '/js/block-styles.js' )
|
||||
);
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'autonomic_theme_scripts' );
|
||||
|
||||
|
Reference in New Issue
Block a user