Notas da versão 6.1: 1 novidade 8 melhorias 1 correção
Novidade
- Comments management through the MainWP Abilities API, including comment lists, individual comment details, recent synced comments, moderation actions, and previewed or confirmed permanent deletion of trashed comments.
Melhoria
- The comments REST list caps maximum at 100 per site (was 500); larger values return a 400.
- The all-sites REST list returns at most 100 sites per call and reports paging in the X-MainWP-Comments-* headers.
- Invalid REST filter values return a 400 instead of being ignored.
- REST comment reads and moderation actions require an API key tied to a user with manage_options, or to a Team Control user with assigned sites and access to the Comments extension; other keys receive a 403.
- A comments REST read where every child site fails returns a 502 instead of an empty success.
- REST bulk comment actions accept 1 to 100 unique comment IDs; longer lists or duplicates return a 400.
- REST comment routes treat a site outside the user's Team Control scope as not found.
- With an updated MainWP Child, REST comment actions return 404 comment_not_found for a missing comment and 409 comment_status_conflict for a comment the action does not apply to (for example, approving an approved comment); bulk replies list those IDs in not_found and failed.
Correção
- A REST comment action or bulk action with an unknown action returns a 400 instead of a 500.