[wp-trac] [WordPress Trac] #9313: Store the date format string
"Y-m-d H:i:s" in a constant
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 11 13:27:35 GMT 2009
#9313: Store the date format string "Y-m-d H:i:s" in a constant
---------------------------+------------------------------------------------
Reporter: simonwheatley | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords: has-patch, 2nd-opinion
---------------------------+------------------------------------------------
Currently the format string "Y-m-d H:i:s" is scattered through the WP
codebase. It would seem more sensible and dryer (?) to have the format
string in one place, perhaps a constant, and then refer to that constant
wherever it is needed.
The attached patch does just that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9313>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list