Skip to content

fix(dashboard): enqueue wu-styling on network admin dashboard for activity-stream widget #767

Description

@superdav42

Problem

The activity-stream dashboard widget wraps its output in <div class="wu-styling">, which requires framework.css (registered as the wu-styling stylesheet handle). The network admin dashboard (index.php) is not a wp-ultimo admin page, so enqueue_default_admin_styles() skips it — the stylesheet is never enqueued, causing the widget to render unstyled.

Fix

Add wp_enqueue_style('wu-styling') in Dashboard_Widgets::enqueue_scripts() before the existing script enqueues. This method already guards on $pagenow === 'index.php', so the enqueue only fires on the dashboard.

Files Changed

  • EDIT: inc/class-dashboard-widgets.php — add wp_enqueue_style('wu-styling') in enqueue_scripts()

Verification

Activate the plugin on a WordPress Multisite install, visit the network admin dashboard, and confirm the activity-stream widget renders with correct styling (borders, typography, colours from the wu-styling framework).


aidevops.sh v3.6.167 plugin for OpenCode v1.3.16 with claude-sonnet-4-6 spent 4m and 7,613 tokens on this as a headless worker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions