You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Orders menu badge inaccurately shows "1" when all non-completed orders are in the Trash #2481
Description
The Orders badge in the Tutor LMS admin menu is displaying a notification count of "1" even though there are no active orders requiring attention. All non-completed orders have been moved to the Trash, but the badge does not clear.
Environment
WordPress: 6.9.4
Tutor LMS Pro: 3.9.2
Steps to Reproduce
Have a mix of order statuses in the system.
Move all non-completed orders (Unpaid, Refunded, Cancelled, etc.) to the Trash.
Look at the Tutor LMS admin menu in the WordPress sidebar.
Observe the Orders notification badge.
Actual Behavior
The Orders menu badge persists and displays a "1".
For context, my exact current order breakdown is:
10 Completed / Paid
5 Unpaid (in Trash)
1 Refunded (in Trash)
Despite everything requiring attention being moved to the Trash, the badge still indicates there is 1 item needing review.
Expected Behavior
Once all non-completed orders are moved to the Trash, the menu badge should clear completely (or show 0), as there is nothing left in the active order queue that requires an administrator's attention.
Impact
This creates a permanent false alert in the WordPress admin dashboard. It renders the notification badge useless, as administrators cannot rely on it to know if a real order actually needs their attention.
Activity