[wp-trac] [WordPress Trac] #64248: REST API: Logic to only change comment status never runs
WordPress Trac
noreply at wordpress.org
Thu Nov 13 09:00:59 UTC 2025
#64248: REST API: Logic to only change comment status never runs
--------------------------+-----------------------------
Reporter: Mamaduka | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The `::update_item` method has [https://github.com/WordPress/wordpress-
develop/blob/f99957fa1ecfe8c7707c9d930a700dddc6506cbf/src/wp-includes
/rest-api/endpoints/class-wp-rest-comments-controller.php#L899-L910
special condition] for when only comment status is changed, that code path
never runs. The `$prepared_args` always includes
[https://github.com/WordPress/wordpress-
develop/blob/f99957fa1ecfe8c7707c9d930a700dddc6506cbf/src/wp-includes
/rest-api/endpoints/class-wp-rest-comments-controller.php#L1423-L1430
fallback values] for user IP and agent.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64248>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list