From 0f2078bc9ee61d8abc8baa6b824bb83b3409fe18 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 12 Sep 2015 02:27:50 +0000 Subject: [PATCH] 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 ``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 --- src/wp-admin/includes/meta-boxes.php | 2 +- src/wp-admin/js/post.js | 5 +++++ src/wp-includes/comment-template.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index e0ac4041d1..c4f318927b 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -690,7 +690,7 @@ function post_comment_meta_box( $post ) { } ?> -

+