Changes between Initial Version and Version 1 of Ticket #58368, comment 15
- Timestamp:
- 05/24/2023 06:07:24 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58368, comment 15
initial v1 2 2 > Aside: @Guss77 another option for you would be to add a `wp_count_comments` filter in [https://github.com/WordPress/wordpress-develop/blob/d51ee6ce097fb288aca9da1f95899fc3d77c0fa4/src/wp-includes/comment.php#L1433-L1436 that same function]. This would allow you to short-circuit the expensive query, and you could use the query that lacks the `ORDER BY`. 3 3 4 My current solution is to apply the patch manually to the installation of WordPress that I use - which will cause it to be undone whenif the next version is released without addressing this issue.4 My current solution is to apply the patch manually to the installation of WordPress that I use - which will cause it to be undone if the next version is released without addressing this issue. 5 5 6 6 Hopefully, that will not be the case, but if so I will have to implement the filter function - though that solution will have to make a manual SQL query that mimics `WP_Comment_Query->get_comment_ids()` and will be vulnerable to bitrot due to future WordPress core changes - so, not a great solution.