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:
Rachel Baker 2016-01-18 02:49:40 +00:00
parent 7c6c3a081f
commit 2da13dda2e

View File

@ -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'] );
}
/**