[wp-trac] [WordPress Trac] #5271: the_modified_date function
inconsistent with the_date
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 28 15:57:46 GMT 2007
#5271: the_modified_date function inconsistent with the_date
---------------------+------------------------------------------------------
Reporter: gpoul | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.3.2
Component: General | Version:
Severity: minor | Keywords:
---------------------+------------------------------------------------------
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;
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/5271>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list