Make WordPress Core

Opened 19 years ago

Closed 17 years ago

#1107 closed enhancement (fixed)

No Template Tag has access to post_modified

Reported by: mdawaffe's profile mdawaffe Owned by: rob1n's profile rob1n
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: needs-patch
Focuses: Cc:


Currently, there is no convenient way to access a post's modified time. As a start, modifying the_date to accept an additional parameter is suggested here.

Patch submitted.

Attachments (1)

datemodified.diff (1.0 KB) - added by mdawaffe 19 years ago.

Download all attachments as: .zip

Change History (6)

#1 @mdawaffe
19 years ago

  • Patch set to No

#2 @mdawaffe
19 years ago

OK - that's a miserable attempt. Should be working with the_time not the_date.

EDIT: Patch is worthless.
EDIT2: Well, not completely worthless. It's fine for Pages, not for Posts.

edited on: 03-15-05 00:47

edited on: 03-15-05 00:53

#3 @MC_incubus
19 years ago

Hm, I think I'd add a new function.


#4 @rob1n
17 years ago

  • Keywords needs-patch added
  • Milestone set to 2.2
  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned
  • Version changed from 1.5.1 to 2.1

Yeah, a new function sounds the best.

I'll work on a patch later.

#5 @rob1n
17 years ago

  • Milestone 2.2 deleted
  • Resolution set to fixed
  • Status changed from assigned to closed

Never mind. get_the_modified_time and the_modified_time (wp-includes/general-template.php, about line 700) are in the core.

Note: See TracTickets for help on using tickets.