mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-27 15:24:59 +02:00
Use correct property name when setting child comments.
This fixes a typo from [34546], uncovered by unrelated changes in [34583]. See #8071, #27571. Built from https://develop.svn.wordpress.org/trunk@34595 git-svn-id: http://core.svn.wordpress.org/trunk@34559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cef2439453
commit
95679a3292
|
@ -301,7 +301,7 @@ final class WP_Comment {
|
||||||
* @param WP_Comment $child Child comment.
|
* @param WP_Comment $child Child comment.
|
||||||
*/
|
*/
|
||||||
public function add_child( WP_Comment $child ) {
|
public function add_child( WP_Comment $child ) {
|
||||||
$this->comments[ $child->comment_ID ] = $child;
|
$this->children[ $child->comment_ID ] = $child;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -314,8 +314,8 @@ final class WP_Comment {
|
||||||
* @return WP_Comment|bool Returns the comment object if found, otherwise false.
|
* @return WP_Comment|bool Returns the comment object if found, otherwise false.
|
||||||
*/
|
*/
|
||||||
public function get_child( $child_id ) {
|
public function get_child( $child_id ) {
|
||||||
if ( isset( $this->comments[ $child_id ] ) ) {
|
if ( isset( $this->children[ $child_id ] ) ) {
|
||||||
return $this->comments[ $child_id ];
|
return $this->children[ $child_id ];
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34594';
|
$wp_version = '4.4-alpha-34595';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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