Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #64921, comment 7


Ignore:
Timestamp:
03/23/2026 12:04:02 PM (8 months ago)
Author:
westonruter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64921, comment 7

    initial v1  
    11Oh, 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.
    22
    3 I see this was also caught by @abcd95 in https://github.com/WordPress/wordpress-develop/pull/11327
     3I see this was also caught by @immeet94 in https://github.com/WordPress/wordpress-develop/pull/11327