Make WordPress Core

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#5271 closed defect (bug) (invalid)

the_modified_date function inconsistent with the_date

Reported by: gpoul's profile gpoul Owned by: westi's profile westi
Milestone: Priority: low
Severity: minor Version: 2.3.1
Component: Template Keywords: needs-patch
Focuses: Cc:

Description

the_modified_date function signature is not consistent with the_date function, but it would probably make sense for it to be.

Implementation was partially completed in ticket #2374, but is not consistent.

A consistent version would look something like the following:

function the_modified_date($d = '', $before='', $after='', $echo = true) {
       $the_modified_date .= $before;
       $the_modified_date .= apply_filters('the_modified_date', get_the_modified_date($d), $d);
       $the_modified_date .= $after;
       if ( $echo )
               echo $the_modified_date;
       else
               return $the_modified_date;
}

Change History (5)

#1 @westi
16 years ago

  • Milestone changed from 2.3.2 to 2.4
  • Owner changed from anonymous to westi
  • Status changed from new to assigned
  • Version set to 2.3.1

#2 @santosj
16 years ago

  • Component changed from General to Template

#3 @westi
16 years ago

  • Keywords needs-patch added

#4 @Denis-de-Bernardy
15 years ago

  • Resolution set to invalid
  • Status changed from assigned to closed

they serve different purposes.

#5 @Denis-de-Bernardy
15 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.