Skip to content

Commit fd8547e

Browse files
authored
Scripts: Make plugin scripts available in all tabs (#1663)
1 parent 5e0cb44 commit fd8547e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

includes/wp-admin/class-admin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ public static function enqueue_scripts( $hook_suffix ) {
225225
ACTIVITYPUB_PLUGIN_VERSION,
226226
false
227227
);
228+
229+
// Plugin cards in help tab.
230+
\wp_enqueue_script( 'plugin-install' );
231+
\add_thickbox();
232+
\wp_enqueue_script( 'updates' );
228233
}
229234

230235
if ( 'index.php' === $hook_suffix ) {

includes/wp-admin/class-settings.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,6 @@ public static function settings_page() {
358358
\wp_enqueue_media();
359359
\wp_enqueue_script( 'activitypub-header-image' );
360360
break;
361-
case 'welcome':
362-
\wp_enqueue_script( 'plugin-install' );
363-
\add_thickbox();
364-
\wp_enqueue_script( 'updates' );
365-
break;
366361
}
367362

368363
if ( ! isset( $settings_tabs[ $tab ] ) ) {

0 commit comments

Comments
 (0)