After the global
churn in [33964], also set $post
to null
at the end of WP_Comments_List_Table::single_row()
to ensure that an orphaned comment doesn't inherit the previous row's $post
context.
See #33638. git-svn-id: https://develop.svn.wordpress.org/trunk@33986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6bc498c0e6
commit
a025ce4f12
@ -448,13 +448,16 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
}
|
||||
$the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment, $comment->comment_post_ID ) );
|
||||
|
||||
$post = get_post( $comment->comment_post_ID );
|
||||
|
||||
if ( $comment->comment_post_ID > 0 ) {
|
||||
$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";
|
||||
|
||||
$post = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user