[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:03:05 UTC 2010
#13493: Make the_date() and is_new_day work properly
--------------------------+-------------------------------------------------
Reporter: banago | Owner: Otto
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Template | Version:
Severity: normal | Keywords: needs-patch reporter-feedback
--------------------------+-------------------------------------------------
Comment(by banago):
Hi dd32,
The back story is that the_date will not acho if you have two or more
posts posted in the same date. The function will echo the date in the
first post of that date and will leave blank the other ones, which is
pretty annoying and not an expected behavior of the_date().
Here is where is_new_date() comes along and if you want to leave blank the
date of the other posts of the dame date, than just add this: if
(is_new_day()) the_date();
The more important part is that if this function gets fixed, no theme will
break for sure - the function will only fill the blank dates of the posts
of the same date.
We talked this with Otto in the wp-hackers mailing list and he suggested
to make a ticked for this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13493#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list