WordPress.org

Make WordPress Core

Changeset 37325


Ignore:
Timestamp:
04/29/2016 03:46:39 PM (4 years ago)
Author:
wonderboymusic
Message:

Comments: pass $comment to comment_text() in Walker_Comment::comment() instead of using a function which can skip the cache.

Props rachelbaker.
Fixes #35433.

File:
1 edited

Legend:

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

    r37052 r37325  
    288288        </div>
    289289
    290         <?php comment_text( get_comment_id(), array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
     290        <?php comment_text( $comment, array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    291291
    292292        <?php
Note: See TracChangeset for help on using the changeset viewer.