[wp-trac] [WordPress Trac] #13493: Make the_date() and is_new_day work properly

WordPress Trac wp-trac at lists.automattic.com
Mon May 24 14:32:28 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:  has-patch reporter-feedback
-----------------------------+----------------------------------------------

Comment(by filosofo):

 Replying to [comment:6 banago]:
 > So, even though the historical behavior is such, it is a buggy feature -
 if I can put it like that - and needs to be fixed.

 I agree that it's sorta ridiculous behavior, but it's intentional,
 documented, widely-used, and historical behavior.  Therefore by definition
 it's not buggy--the bug has become a feature.

 What I'm saying is that in general, when something is widely-used in
 themes, its default behavior won't be changed.  Instead, the way people
 usually work around that situation is by adding additional arguments to
 the function or deprecating it for another.

 In this case, jeremyclarke has already worked around it by introducing
 `get_the_date()`: r12917  Use it instead.

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


More information about the wp-trac mailing list