[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 09:53:00 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
--------------------------+-------------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch => needs-patch reporter-feedback
  * component:  Date/Time => Template


Comment:

 What is actually wrong with the_date() / is_new_day() ? Can you provide
 some back story?

 Its been discussed before about the_date() not always echo'ing, The answer
 has been that themes rely on the current result, as such, changing it to
 always output is not ideal, as it'll break a lot of themes. the_time() can
 always be used to display the date on each post, you simply need to pass
 the "time format" (which can include date markers) as the first parameter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13493#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list