[wp-trac] [WordPress Trac] #48207: Implement new Comment Date Functions

WordPress Trac noreply at wordpress.org
Sun Nov 3 17:52:23 UTC 2019


#48207: Implement new Comment Date Functions
-------------------------------------------+------------------------------
 Reporter:  dshanske                       |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Date/Time                      |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-unit-tests dev-feedback  |     Focuses:
-------------------------------------------+------------------------------
Changes (by dshanske):

 * keywords:   => needs-unit-tests dev-feedback


Comment:

 The attachment introduces the get_comment_timestamp and
 get_comment_datetime functions that are basically copies of the post
 versions of same. It does change the signature of get_comment_time to
 allow passing through a comment, which mirrors get_post_time. The fact
 that get_comment_time only allowed for the current comment, yet
 get_comment_date allowed for the passing of any comment seemed an odd
 inconsistency.

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


More information about the wp-trac mailing list