[wp-trac] [WordPress Trac] #58064: In the comment_time function, the call to the get_comment_time function is incorrect.

WordPress Trac noreply at wordpress.org
Mon Apr 3 10:29:49 UTC 2023


#58064: In the comment_time function, the call to the get_comment_time function is
incorrect.
--------------------------+---------------------
 Reporter:  tmatsuur      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.2.1
Component:  Comments      |     Version:  6.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by ugyensupport):

 Bug Report
 Description

 In the comment_time function, the call to the get_comment_time function is
 incorrect.

 Environment

 WordPress: 6.2
 PHP: 8.0.0
 Server: Apache/2.4.10 (Debian)
 Database: mysqli (Server: 5.5.59-MariaDB-1~wheezy / Client: 5.5.62)
 Browser: Chrome 111.0.0.0 (macOS)
 Theme: Twenty Twenty-Three 1.1
 MU-Plugins: None activated
 Plugins:
 Gutenberg 15.4.0
 WordPress Beta Tester 3.3.7


 Steps to Reproduce

 The parameter $comment_id was added to the comment_time function in
 version 6.2, but it is not correctly passed on to the get_comment_time
 function called in it.
 Current:

 {{{
 echo get_comment_time( $format, $comment_id );
 }}}

 Corrected content:

 {{{
 echo get_comment_time( $format, false, true, $comment_id );
 }}}


 Expected Results

  ✅ Looks good to me
 Actual Results

  ❌ Looking forward to add this changes in 6.2.1

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


More information about the wp-trac mailing list