List Tables: Use the $GLOBALS array when unsetting the global post and comment in WP_Comments_List_Table::single_row()
.
In r35674 only the local variables were unset, when using `unset()` with a global variable the `$GLOBALS` array must be used. Fixes #35506. git-svn-id: https://develop.svn.wordpress.org/trunk@36339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7c6c3a081f
commit
2da13dda2e
@ -499,7 +499,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$this->single_row_columns( $comment );
|
||||
echo "</tr>\n";
|
||||
|
||||
unset( $post, $comment );
|
||||
unset( $GLOBALS['post'], $GLOBALS['comment'] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user