[wp-trac] [WordPress Trac] #19849: Pass $comment_date to get_comment_time filter

WordPress Trac noreply at wordpress.org
Tue Feb 25 21:46:57 UTC 2014


#19849: Pass $comment_date to get_comment_time filter
-------------------------+------------------------------
 Reporter:  lexhair      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Date/Time    |     Version:  3.3.1
 Severity:  minor        |  Resolution:
 Keywords:  close        |     Focuses:
-------------------------+------------------------------
Changes (by MattyRob):

 * keywords:   => close


Comment:

 Hi there, apologies that this ticket has remained unanswered for so long.

 There is a [http://codex.wordpress.org/Function_Reference/get_comment_date
 get_comment_date()] function that mirrors the
 [http://codex.wordpress.org/Function_Reference/get_comment_time
 get_comment_time()] function with the former returning a formatted date
 while the latter returns a formatted time.

 I think the confusion here is the use of a $date variable in the
 get_comment_time() function but the core code seems to consider that a
 'time' is simply a small part of the overall timestamp which also includes
 the 'date'.

 I think including 'date' information in the get_comment_time() function
 might confuse further when these 2 functions are available and documented
 in the codex.

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


More information about the wp-trac mailing list