WordPress.org

Make WordPress Core

Ticket #21184: comment-template.php.diff

File comment-template.php.diff, 555 bytes (added by sirzooro, 6 years ago)
  • wp-includes/comment-template.php

    old new  
    13311331        function start_el( &$output, $comment, $depth, $args, $id = 0 ) {
    13321332                $depth++;
    13331333                $GLOBALS['comment_depth'] = $depth;
     1334                $GLOBALS['comment'] = $comment;
    13341335
    13351336                if ( !empty($args['callback']) ) {
    13361337                        call_user_func($args['callback'], $comment, $args, $depth);
    13371338                        return;
    13381339                }
    13391340
    1340                 $GLOBALS['comment'] = $comment;
    13411341                extract($args, EXTR_SKIP);
    13421342
    13431343                if ( 'div' == $args['style'] ) {