WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#6641 closed defect (bug) (fixed)

get_the_time filter called twice

Reported by: filosofo Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords: get_the_time get_post_time filter has-patch
Focuses: Cc:

Description

The "get_the_time" filter is just about useless, because if you call the function get_the_time(), the time is filtered by "get_the_time" twice: once in get_post_time() and again in get_the_time()

Patch changes the filter from "get_the_time" to "get_post_time" in get_post_time()

Attachments (1)

doubled_filter_call.diff (419 bytes) - added by filosofo 7 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 @ryan7 years ago

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

(In [7634]) Change get_the_time filter to get_post_time for the get_post_time() function. Props filosofo. fixes #6641 for trunk

Note: See TracTickets for help on using tickets.