WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/04/2013 10:59:58 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Pass comment ID and comment post ID to get_comment_class() in WP_Comments_List_Table::single_row().

props drozdz.
fixes #25814.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r25526 r26001  
    312312
    313313        $comment = $a_comment;
    314         $the_comment_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
     314        $the_comment_class = wp_get_comment_status( $comment->comment_ID );
     315        $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) );
    315316
    316317        $post = get_post( $comment->comment_post_ID );
Note: See TracChangeset for help on using the changeset viewer.