WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 10 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 11 years ago.

Download all attachments as: .zip

Change History (2)

@mdawaffe
11 years ago

#1 @ryan
11 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.