[wp-trac] [WordPress Trac] #29849: Better human_time_diff()
WordPress Trac
noreply at wordpress.org
Tue Oct 21 20:03:55 UTC 2014
#29849: Better human_time_diff()
-------------------------+------------------------------
Reporter: kovshenin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Changes (by johnbillion):
* keywords: has-patch dev-feedback => has-patch
* type: defect (bug) => enhancement
Comment:
A few notes on [attachment:29849.diff]:
* The `$to` argument in `human_time_diff()` should be retained. Removing
it makes it less functional.
* `$diff` should be included in the `wp_natural_time` filter arguments.
* I'd like to see some places this can be used in core in place of
`human_time_diff()` to improve the i18n.
* For this to be really useful it should support timestamps in MySQL
format, so you can plug in dates straight from the `post_date` column.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29849#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list