Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions inc/class-dashboard-widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ public function enqueue_scripts(): void {
return;
}

/*
* The activity-stream widget is only registered on the network dashboard
* (wp_network_dashboard_setup). Skip enqueueing its assets on the regular
* per-site dashboard to avoid the Vue "Cannot find element: #activity-stream-content"
* console error.
*/
if ( ! is_network_admin()) {
return;
}

/*
* The activity-stream widget view wraps its output in <div class="wu-styling">,
* which requires framework.css (registered as 'wu-styling'). The network admin
Expand Down
Loading