From 9065794462620fc9654eaa7c1f3dcc91cdb68ef3 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Mon, 18 Jan 2016 02:50:27 +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. Built from https://develop.svn.wordpress.org/trunk@36339 git-svn-id: http://core.svn.wordpress.org/trunk@36306 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 14029323db..f12565a95f 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/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'] ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 95caa4ec84..0043600c1a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.