#5271 closed defect (bug) (invalid)
the_modified_date function inconsistent with the_date
Reported by: | gpoul | Owned by: | 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)
Note: See
TracTickets for help on using
tickets.
they serve different purposes.