[wp-trac] [WordPress Trac] #25814: Not enough params for get_comment_class in WP_Comments_List_Table->display()
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Nov  4 08:59:12 UTC 2013
    
    
  
#25814: Not enough params for get_comment_class in
WP_Comments_List_Table->display()
-------------------------+-----------------------------
 Reporter:  drozdz       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.7.1
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 On line 314 you can find:
 {{{
 function single_row( $a_comment ) {
         global $post, $comment;
         $comment = $a_comment;
         $the_comment_class = join( ' ', get_comment_class(
 wp_get_comment_status( $comment->comment_ID ) ) );
         $post = get_post( $comment->comment_post_ID );
         $this->user_can = current_user_can( 'edit_comment',
 $comment->comment_ID );
         echo "<tr id='comment-$comment->comment_ID'
 class='$the_comment_class'>";
         $this->single_row_columns( $comment );
         echo "</tr>\n";
 }
 }}}
 It would be much easier to work with it, if get_comment_class would get
 all params (including comment_ID and post_ID).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25814>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list