-
Notifications
You must be signed in to change notification settings - Fork 144
Dashboard: Rename class/feature to remove conflict with legacy dashboard widget #2138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and simple!
config/core.json
Outdated
@@ -2,7 +2,7 @@ | |||
"features": { | |||
"activity-panels": false, | |||
"analytics": false, | |||
"dashboard": false, | |||
"analytics-dashboard": false, | |||
"dashboard/customizable": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this flag to analytics-dashboard/customizable
too?
@jeffstieler is this branch still working for you? I can no longer see the dashboard on this branch - I attempted rebasing but still no love. |
@timmyc I'm not seeing the dashboard anymore 😕 |
I'm not sure how this branch ever worked without updating this line too:
|
@jeffstieler @justinshreve I was one of the admins which can not live without the WOO dashboard in the WP Dashboard. |
Good catch @psealock guessing while testing this I had a cached build locally. I was noticing there is a lag between a file save, and changes being reflected in my local build with I applied the fix, and also changed the name of the name to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It's possible that you maybe didn't exit and restart |
Yep absolutely this was it. And that explains some of the choice words I uttered while trying to get the PR working again yesterday - 😆 |
Fixes #2137
This branch renames the
WC_Admin_Dashboard
toWC_Admin_Analytics_Dashboard
to prevent the name collision that currently results in the legacy Woo Core dashboard widget from being displayed.Screenshots
Detailed test instructions:
master
of wc-admin installed/activated, note the bug by visiting the wp-admin dashboard and seeing that the WooCommerce Status widget is not shown ( see screen grab above )