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.

Built from https://develop.svn.wordpress.org/trunk@36339


git-svn-id: http://core.svn.wordpress.org/trunk@36306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Rachel Baker 2016-01-18 02:50:27 +00:00
parent e62c559da3
commit 9065794462
2 changed files with 2 additions and 2 deletions

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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-1453075152649';
$wp_version = '4.5-alpha-1453085412976';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.