WordPress.org

Make WordPress Core

Changeset 34595


Ignore:
Timestamp:
09/26/2015 02:40:15 PM (4 years ago)
Author:
boonebgorges
Message:

Use correct property name when setting child comments.

This fixes a typo from [34546], uncovered by unrelated changes in [34583].

See #8071, #27571.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-comment.php

    r34585 r34595  
    302302     */
    303303    public function add_child( WP_Comment $child ) {
    304         $this->comments[ $child->comment_ID ] = $child;
     304        $this->children[ $child->comment_ID ] = $child;
    305305    }
    306306
     
    315315     */
    316316    public function get_child( $child_id ) {
    317         if ( isset( $this->comments[ $child_id ] ) ) {
    318             return $this->comments[ $child_id ];
     317        if ( isset( $this->children[ $child_id ] ) ) {
     318            return $this->children[ $child_id ];
    319319        }
    320320
Note: See TracChangeset for help on using the changeset viewer.