WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#34603 closed defect (bug) (fixed)

Use WEEK_IN_SECONDS in get_weekstartend

Reported by: MikeHansenMe Owned by: SergeyBiryukov
Milestone: 4.4 Priority: normal
Severity: trivial Version:
Component: General Keywords: has-patch
Focuses: Cc:
PR Number:

Description

After seeing #34602 I wondered if we had any similar situations with WEEK_IN_SECONDS and found get_weekstartend uses 7 * DAY_IN_SECONDS.

Attachments (1)

34603.diff (436 bytes) - added by MikeHansenMe 4 years ago.

Download all attachments as: .zip

Change History (4)

@MikeHansenMe
4 years ago

#1 @MikeHansenMe
4 years ago

  • Keywords has-patch added
  • Severity changed from normal to trivial

#2 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 4.4
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @SergeyBiryukov
4 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 35556:

Replace 7 * DAY_IN_SECONDS with WEEK_IN_SECONDS in get_weekstartend().

Props MikeHansenMe.
Fixes #34603.

Note: See TracTickets for help on using tickets.