Ticket #1107 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

No Template Tag has access to post_modified

Reported by: mdawaffe Assigned to: 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 (1.0 kB) - added by mdawaffe on 05/21/05 06:36:45.

Change History

03/15/05 00:34:30 changed by mdawaffe

  • Patch set to No.

03/15/05 00:47:16 changed by mdawaffe

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

03/16/05 03:07:37 changed by MC_incubus

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

the_time_modified();

05/21/05 06:36:45 changed by mdawaffe

  • attachment datemodified.diff added.

02/15/07 22:11:56 changed by rob1n

  • keywords set to needs-patch.
  • 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.

02/16/07 04:36:05 changed by rob1n

  • status changed from assigned to closed.
  • resolution set to fixed.
  • milestone deleted.

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