[wp-trac] [WordPress Trac] #29849: Better human_time_diff()
WordPress Trac
noreply at wordpress.org
Wed Nov 4 00:32:08 UTC 2015
#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:
-------------------------+------------------------------
Comment (by Viper007Bond):
I'd encourage you all to take another look at #18495. For purposes of
translation, we may be required to support a context parameter.
When I rewrote `human_time_diff()` for #9272, it got complicated fast but
I'm not sure it can be avoided. See the `switch ( $args['context'] ) { `
and following code in my patch:
https://core.trac.wordpress.org/attachment/ticket/9272/18495.patch
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29849#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list