Thread Starter
cerice
(@cerice)
Thank you for the answer.
I saw that the version on the github was old, but the part of the code that I modified did not change in version 3.8.
This part causes SQL query saturation on our server. Indeed we have a multisite of more than 1000 blogs and fortunately the “get_sites” function limits the number of blogs back to 100.
I’m just waiting for your return of validation of the modified code to put it into production. As I say in “github”, this piece of code makes no sense for the site it’s running on and the last of the 100 sites wins on whether or not “add_action” is enabled.
Hello,
I hope you read this message.
I have the same problem I have corrected.
In the file: /wp-includes/comment-template.php
I insert this code : if ($per_page==0) $per_page=50;
before line 1311 : $comment_args['number'] = $per_page;.
Put your maximum value instead of 50 if it does not suit you.