[wp-trac] [WordPress Trac] #27271: Add a filter to human_time_diff()

WordPress Trac noreply at wordpress.org
Sun Mar 16 19:53:33 UTC 2014


#27271: Add a filter to human_time_diff()
---------------------------------+-----------------------------
 Reporter:  slimndap             |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Formatting           |     Version:  3.8.1
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 4.0-early  |     Focuses:  template
---------------------------------+-----------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch needs-docs 4.0-early => has-patch 4.0-early


Comment:

 Replying to [comment:5 slimndap]:
 > Replying to [comment:3 SergeyBiryukov]:
 > > `$from` and `$to` should probably be passed to the filter as well.
 >
 > I added $from and $to to the new filter.

 At a glance, the hook docs look good. Thanks.

 Protip: Make sure to pass `--no-prefix` when you generate the diff so you
 don't get all of the extra information attached to it like in your latest
 patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27271#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list