From 2da13dda2ea55c3d53cb7b40ab6e494acada29ec Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Mon, 18 Jan 2016 02:49:40 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-comments-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 14029323db..f12565a95f 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -499,7 +499,7 @@ class WP_Comments_List_Table extends WP_List_Table { $this->single_row_columns( $comment ); echo "\n"; - unset( $post, $comment ); + unset( $GLOBALS['post'], $GLOBALS['comment'] ); } /**