Make WordPress Core


Ignore:
Timestamp:
09/12/2015 02:27:50 AM (10 years ago)
Author:
wonderboymusic
Message:

When clicking "Show More Comments" in the Comments meta box on the Edit Post screen, change the click behavior to call a new class method on commentsBox, ->load(), that resets st (cool name) to the number of visible <tr>s before calling ->get(). This will account for spam'd and trash'd comments when returning comments at the proper offset.

Props utkarshpatel.
Fixes #33829.

File:
1 edited

Legend:

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

    r34039 r34069  
    854854    $comment = get_comment( $comment_ID );
    855855
    856     $comment_text = get_comment_text( $comment_ID , $args );
     856    $comment_text = get_comment_text( $comment, $args );
    857857    /**
    858858     * Filter the text of a comment to be displayed.
Note: See TracChangeset for help on using the changeset viewer.