Skip to content

Commit b749ead

Browse files
committed
Add wp-util dependency
1 parent 313228f commit b749ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/php/class-migration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function admin_enqueue_scripts() {
195195
wp_enqueue_script(
196196
'material-m3-migration-color',
197197
$this->plugin->asset_url( 'assets/js/admin-m3-color-migration.js' ),
198-
$version['dependencies'],
198+
array_merge( $version['dependencies'], [ 'wp-util' ] ),
199199
$version['version'],
200200
true
201201
);
@@ -250,7 +250,7 @@ public function admin_notice_m3_migration() {
250250
wp_enqueue_script(
251251
'material-m3-notice-migration-color',
252252
$this->plugin->asset_url( 'assets/js/admin-notice-m3-migration.js' ),
253-
$version['dependencies'],
253+
array_merge( $version['dependencies'], [ 'wp-util' ] ),
254254
$version['version'],
255255
true
256256
);

0 commit comments

Comments
 (0)