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:
parent
e62c559da3
commit
9065794462
|
@ -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'] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue