[wp-trac] [WordPress Trac] #27181: get_the_date() - useless var and concatenation
WordPress Trac
noreply at wordpress.org
Fri Feb 21 22:21:20 UTC 2014
#27181: get_the_date() - useless var and concatenation
-------------------------+-----------------------------
Reporter: juliobox | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 3.0
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Hello
Function ''get_the_date()'':
{{{
function get_the_date( $d = '' ) {
$post = get_post();
$the_date = '';
if ( '' == $d )
$the_date .= mysql2date(get_option('date_format'),
$post->post_date);
else
$the_date .= mysql2date($d, $post->post_date);
return apply_filters('get_the_date', $the_date, $d);
}
}}}
''$the_date = '';'' is useless.
So the 2 ''.='' are useless too.
My 2 cents ;)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27181>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list