[wp-trac] [WordPress Trac] #11264: add missing get_the_date() function and use it inside the_date()
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 27 19:06:13 UTC 2009
#11264: add missing get_the_date() function and use it inside the_date()
--------------------------+-------------------------------------------------
Reporter: jeremyclarke | Owner: westi
Type: enhancement | Status: accepted
Priority: normal | Milestone: 3.0
Component: Date/Time | Version: 2.9
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by jeremyclarke):
Replying to [comment:1 westi]:
> Maybe we can come up with a way of making the_date() always output by
adding a defaulted argument for the current behaviour which then themes
can override.
I thought about that for awhile but when you look at {{{the_date()}}} as
it currently stands it seems like the only solutions there are insanely
ugly:
{{{
function the_date($d='', $before='', $after='', $echo = true)
}}}
IMHO if it will be on-by-default the {{{$show_once}}} parameter should be
early on, probably after {{{$d}}}, but that will kick the hell out of
people already using {{{$before}}} and {{{$after}}}. Putting
{{{$show_once}}} at the end, on the other hand, feels totally wrong to me.
I might be overreacting aesthetically of course. I'd support adding it at
the end if you guys are into it, its just obviously not ideal :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11264#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list