Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#9734 closed defect (bug) (fixed)

wrong filter used in get_post_modified_time()

Reported by: Denis-de-Bernardy Owned by:
Priority: normal Milestone: 2.8
Component: Template Version: 2.8
Severity: normal Keywords: has-patch tested commit
Cc: Focuses:

Description

related to #9730

patch attached

Attachments (1)

9734.diff​ (447 bytes ) - added by Denis-de-Bernardy 18 years ago.

Download all attachments as: .zip

Change History (4)

#1 @westi
18 years ago

This has been like this for a long time.

So changing it breaks backwards compatibility.

However, I don't think that the current hook combination it causes could be used reliably by a plugin so I think it is safe to change.

#2 @Denis-de-Bernardy
18 years ago

Yeah... it gets applied twice:

DB:~/Sites/wp $ grep -r "'get_the_modified_time'" * | grep -v svn
wp-includes/general-template.php:	return apply_filters('get_the_modified_time', $the_time, $d);
wp-includes/general-template.php:	return apply_filters('get_the_modified_time', $time, $d, $gmt);

#3 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [11347]) Use get_post_modified_time filter in get_post_modified_time(). Props Denis-de-Bernardy. fixes #9734

Note: See TracTickets for help on using tickets.