WordPress.org

Make WordPress Core

Changeset 21324


Ignore:
Timestamp:
07/25/2012 04:27:48 PM (6 years ago)
Author:
ryan
Message:

Set the global comment var before invoking callbacks in wp_list_comments(). Props sirzooro. fixes #21184

File:
1 edited

Legend:

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

    r20974 r21324  
    13321332        $depth++;
    13331333        $GLOBALS['comment_depth'] = $depth;
     1334        $GLOBALS['comment'] = $comment;
    13341335
    13351336        if ( !empty($args['callback']) ) {
     
    13381339        }
    13391340
    1340         $GLOBALS['comment'] = $comment;
    13411341        extract($args, EXTR_SKIP);
    13421342
Note: See TracChangeset for help on using the changeset viewer.