fix random php error in site editor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-07-30 15:45:36 +05:00
parent 4fe96e23a4
commit 5256c8cb6a

View File

@ -34,7 +34,12 @@ add_action( 'enqueue_block_editor_assets', 'enqueue_editor_styles' );
function autonomic_theme_scripts() { function autonomic_theme_scripts() {
// this is also for block styles // 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' ); add_action( 'enqueue_block_editor_assets', 'autonomic_theme_scripts' );