Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Json API should not filter "review" type comments from WPCOM_JSON_API_List_Comments_Endpoint #22316

Open yoavf opened 2 years ago

yoavf commented 2 years ago

Impacted plugin

Jetpack

Steps to Reproduce

A clear and concise description of what you expected to happen.

What actually happened

Jetpack filters all sort of woo comment types here

While Woo already has a bunch of filters (example) to exclude 'order_note', 'webhook_delivery', and 'action_log' type comments, it explicitly doesn't exclude review and JP shouldn't do that.

Other information

Reported by user in 4680406-zd-woothemes

Operating System

No response

OS Version

No response

Browser

Chrome/Chromium

Browser Version(s)

No response

jeherve commented 2 years ago

For reference, this was originally implemented a few years back in #10786 (and #10855). If we were to include reviews, we would have to keep that in mind, as well as the issues that were discussed in p90Yrv-Tz-p2