Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Do not take into account days that open and close at the same time #101

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion public/class-local-pickup-time.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ public function get_pickup_time_options() {
if (
! in_array( $pickup_datetime->format( 'm/d/Y' ), $dates_closed, true ) &&
! empty( $pickup_day_open_time ) &&
! empty( $pickup_day_close_time )
! empty( $pickup_day_close_time ) &&
$pickup_day_open_time !== $pickup_day_close_time
) {

// Get the intervals for the day and merge the results with the previous array of intervals.
Expand Down