[wp-trac] [WordPress Trac] #13493: Make the_date() and is_new_day work properly
WordPress Trac
wp-trac at lists.automattic.com
Sat May 22 10:15:15 UTC 2010
#13493: Make the_date() and is_new_day work properly
-----------------------------+----------------------------------------------
Reporter: banago | Owner: Otto
Type: feature request | Status: new
Priority: normal | Milestone: 3.1
Component: Template | Version:
Severity: normal | Keywords: needs-patch reporter-feedback
-----------------------------+----------------------------------------------
Changes (by dd32):
* type: defect (bug) => feature request
Old description:
> Otto's recommendations.
>
> a) fix is_new_day() to actually work.
> b) change the_date and such to always display the date.
>
> With that patch, somebody could do this for the "only on new days" logic:
>
> if (is_new_day()) the_date();
>
> Anybody who actually needed that new day functionality (rare) could then
> fix their theme up quite simply with only a minor adjustment.
New description:
Make the_date() always echo the date, in preference the the historic
behavior of only echo'ing once per "day"
----
Otto's recommendations.
a) fix is_new_day() to actually work.
b) change the_date and such to always display the date.
With that patch, somebody could do this for the "only on new days" logic:
if (is_new_day()) the_date();
Anybody who actually needed that new day functionality (rare) could then
fix their theme up quite simply with only a minor adjustment.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13493#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list