Skip to content

Commit 12f0bf9

Browse files
committed
update enqueue_script
1 parent 540c77a commit 12f0bf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/welcome/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ public function enqueue_dashboard_script( $hook ) {
6161
wp_enqueue_script( 'wp-element' );
6262
wp_enqueue_script( 'wp-hooks' );
6363
wp_enqueue_script( 'wp-util' ); // Need wp.ajax.
64+
wp_enqueue_script( 'wp-plugins' ); // Need registerPlugin
6465
wp_enqueue_script( 'wp-components' ); // Need Spinner.
6566
wp_enqueue_style( 'wp-components' ); // Need Spinner.
6667

6768
do_action( 'stackable_settings_admin_enqueue_scripts' );
6869

69-
wp_enqueue_script( 'stackable-welcome', plugins_url( 'dist/admin_welcome.js', STACKABLE_FILE ), array( 'wp-i18n', 'wp-element', 'wp-hooks', 'wp-util', 'wp-components', 'wp-api', 'wp-editor', 'lodash' ), STACKABLE_VERSION );
70+
wp_enqueue_script( 'stackable-welcome', plugins_url( 'dist/admin_welcome.js', STACKABLE_FILE ), array( 'wp-i18n', 'wp-element', 'wp-hooks', 'wp-util', 'wp-plugins', 'wp-components', 'wp-api', 'wp-editor', 'lodash' ), STACKABLE_VERSION );
7071

7172
// Add translations.
7273
wp_set_script_translations( 'stackable-welcome', STACKABLE_I18N );

0 commit comments

Comments
 (0)