Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jetpack: Fix REST API warnings from Comments endpoint
There are two bugs involved here: * The Subscriptions block is trying to hide comments by returning empty-string from the 'get_comment' filter, but that filter must return a WP_Comment object. Not even null would be right. * The REST API endpoint isn't checking for if `get_comment()` on the parent comment ID returns null. This fixes the second; I don't know what would be correct to fix the first.
- Loading branch information