diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index 46eb6a32..46c712f6 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -1722,7 +1722,20 @@ protected function get_post_status_options($post_status) if (! empty($term->color)) { $color = $term->color; } else { - $color = (class_exists('PublishPress_Statuses')) ? \PublishPress_Statuses::DEFAULT_COLOR : '#78645a'; + $default_status_colors = [ + 'pitch' => '#cc0000', + 'assigned' => '#00bcc5', + 'in-progress' => '#ccc500', + 'draft' => '#f91d84', + 'pending' => '#d87200', + 'private' => '#000000', + ]; + + if (isset($default_status_colors[$post_status])) { + $color = $default_status_colors[$post_status]; + } else { + $color = (class_exists('PublishPress_Statuses')) ? \PublishPress_Statuses::DEFAULT_COLOR : '#78645a'; + } } return [