Skip to content

Commit

Permalink
Fix color for completed orders
Browse files Browse the repository at this point in the history
EDD 3.0 changed the publish order status into complete. This was missing in the Orders view, which caused these orders to have a grey badge instead of a green one.
  • Loading branch information
webzunft committed Nov 25, 2022
1 parent e420c91 commit d64b63e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions includes/class-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ private function get_customer_orders() {
$status_color = 'purple';
break;
case 'publish':
case 'complete':
$status_color = 'green';
break;
case 'refunded':
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ Make sure the "Secret Key" setting for your Help Scout application matches the v

== Changelog ==

= untagged =

- Fix: status badge of completed orders is now also green

= 2.2.1 =

- Improvement: added the `edd_helpscout_after_subscription_list_item` action hook to allow adding elements to the Subscriptions view
Expand Down

0 comments on commit d64b63e

Please sign in to comment.