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.


git-svn-id: https://develop.svn.wordpress.org/trunk@34069 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-12 02:27:50 +00:00
parent f855ddb134
commit 0f2078bc9e
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -853,7 +853,7 @@ function get_comment_text( $comment_ID = 0, $args = array() ) {
function comment_text( $comment_ID = 0, $args = array() ) {
$comment = get_comment( $comment_ID );
$comment_text = get_comment_text( $comment_ID , $args );
$comment_text = get_comment_text( $comment, $args );
/**
* Filter the text of a comment to be displayed.
*