Changes between Initial Version and Version 1 of Ticket #64921, comment 7
- Timestamp:
- 03/23/2026 12:04:02 PM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #64921, comment 7
initial v1 1 1 Oh, what's more, is that the existing logic is wrong even in the ideal case because `$prepared_post->id` shouldn't ever exist. The valid property is `$prepared_post->ID` because `\WP_REST_Posts_Controller::prepare_item_for_database()` returns a faux-`WP_Post` object, not a post object prepared for the REST API response. 2 2 3 I see this was also caught by @ abcd95in https://github.com/WordPress/wordpress-develop/pull/113273 I see this was also caught by @immeet94 in https://github.com/WordPress/wordpress-develop/pull/11327