WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5292 closed defect (bug) (fixed)

get_lastpostdate, get_lastpostmodified filters don't pass enough parameters

Reported by: mdawaffe Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch 2nd-opinion
Focuses: Cc:

Description

get_lastpostdate() and get_lastpostmodified() both accept a timezone parameter and filter their respective results.

However, the filter doesn't know how the timezone parameter was specified and so can't know how to modify the return value. Though core only uses a timezone value of 'GMT', it'd still be nice to know for sure what timezone is being requested when using these filters.

Attached adds the timezone parameter to those filters.

Attachments (1)

5292.diff (732 bytes) - added by mdawaffe 8 years ago.

Download all attachments as: .zip

Change History (2)

@mdawaffe8 years ago

comment:1 @ryan8 years ago

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

(In [6301]) Post timezone to lastpost filters. Props mdawaffe. fixes #5292

Note: See TracTickets for help on using tickets.