Opened 2 years ago
Closed 2 years ago
#16348 closed defect (bug) (fixed)
Dashboard widget preferences not being honored
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Network Admin | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | kparsell-wp@… |
Description
On my dev Multisite install, I have set my preferences to only show the "Right Now" widget on the Network Admin screen. However, whenever I go to the Network Admin dashboard, all of the widgets are being displayed, regardless of what I've chosen (see screenshot).
I have to check all of the boxes, then uncheck them to make the other widgets disappear. Navigating away from the dashboard, then returning, all of the widgets are once again showing, and the checkboxes next to each one in the screen options panel are empty.
This only happens on the Network Admin dashboard; individual site dashboards retain their preferences properly.
Attachments (2)
Change History (10)
comment:5
markjaquith — 2 years ago
Do we have something like this?
function add_suffix_once( $string, $suffix ) {
return preg_replace( '#' . preg_quote( $suffix, '#' ) . '$#', '', $string ) . $suffix;
}
SergeyBiryukov — 2 years ago
comment:6
SergeyBiryukov — 2 years ago
- Keywords has-patch added; network-admin-dashboard removed
I've tested Sergey's patch on my dev install and it resolves the issue for me.
comment:8
markjaquith — 2 years ago
- Resolution set to fixed
- Status changed from new to closed

Related: #16238
It's happened:
Replying to ryan:
get_hidden_meta_boxes( $screen )
$screen is dashboard-network and through convert_to_screen() it becomes dashboard-network-network.