From 09cc78b832d572f6cc19c2a838960d08a396dca9 Mon Sep 17 00:00:00 2001 From: David Stone Date: Wed, 8 Apr 2026 14:40:13 -0600 Subject: [PATCH] fix(dashboard): enqueue wu-styling on network admin dashboard for activity-stream widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The activity-stream widget wraps output in
, which requires framework.css (registered as 'wu-styling'). The network admin dashboard is not a wp-ultimo page so enqueue_default_admin_styles() skips it — add an explicit wp_enqueue_style('wu-styling') call in enqueue_scripts() which already guards on $pagenow === 'index.php'. Fixes #767 --- inc/class-dashboard-widgets.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/class-dashboard-widgets.php b/inc/class-dashboard-widgets.php index 703b2cc0c..84385fe90 100644 --- a/inc/class-dashboard-widgets.php +++ b/inc/class-dashboard-widgets.php @@ -74,6 +74,14 @@ public function enqueue_scripts(): void { return; } + /* + * The activity-stream widget view wraps its output in
, + * which requires framework.css (registered as 'wu-styling'). The network admin + * dashboard is not a wp-ultimo page, so enqueue_default_admin_styles() skips it — + * we must enqueue wu-styling explicitly here. + */ + wp_enqueue_style('wu-styling'); + wp_enqueue_script('wu-vue'); wp_enqueue_script('moment');