Ticket #1107 (closed enhancement: fixed)

Opened 7 years ago

Last modified 5 years ago

No Template Tag has access to post_modified

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

Description

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

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

Change History

  • Patch set to No

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

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

the_time_modified();

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

Yeah, a new function sounds the best.

I'll work on a patch later.

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

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.