List Tables: because we can never eradicate the existence of globals, ensure that $comment
is hoisted into the global space inside WP_Comments_List_Table::single_row()
.
Fixes #34654. Built from https://develop.svn.wordpress.org/trunk@35674 git-svn-id: http://core.svn.wordpress.org/trunk@35638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f0bbe00890
commit
838592c1ba
@ -474,12 +474,15 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @global WP_Post $post
|
* @global WP_Post $post
|
||||||
|
* @global WP_Comment $comment
|
||||||
*
|
*
|
||||||
* @param object $comment
|
* @param WP_Comment $item
|
||||||
*/
|
*/
|
||||||
public function single_row( $comment ) {
|
public function single_row( $item ) {
|
||||||
global $post;
|
global $post, $comment;
|
||||||
|
|
||||||
|
$comment = $item;
|
||||||
|
|
||||||
$the_comment_class = wp_get_comment_status( $comment );
|
$the_comment_class = wp_get_comment_status( $comment );
|
||||||
if ( ! $the_comment_class ) {
|
if ( ! $the_comment_class ) {
|
||||||
@ -496,7 +499,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
$this->single_row_columns( $comment );
|
$this->single_row_columns( $comment );
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
$post = null;
|
unset( $post, $comment );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta4-35673';
|
$wp_version = '4.4-beta4-35674';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user