[wp-trac] [WordPress Trac] #64921: REST API POST /wp/v2/posts: Undefined property stdClass::$id (line 766)
WordPress Trac
noreply at wordpress.org
Sun Mar 22 14:10:24 UTC 2026
#64921: REST API POST /wp/v2/posts: Undefined property stdClass::$id (line 766)
-------------------------------------+------------------------------
Reporter: swissspaceboy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.9.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: rest-api
-------------------------------------+------------------------------
Changes (by abcd95):
* keywords: has-patch => has-patch needs-testing
Comment:
== Reproduction Report
=== Description
This report validates whether the reported issue can be reproduced.
=== Environment
WordPress: 6.9.4-src
PHP: 8.3.30
Server: nginx/1.29.5
Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.3.30)
Browser: Chrome 146.0.0.0
OS: macOS
Theme: Twenty Twenty-Five 1.4
MU Plugins: None activated
Plugins:
Test Reports 1.2.0
=== Actual Results
❌ Error condition does not occur (not reproduced).
Successfully created a post via POST /wp-json/wp/v2/posts.
No PHP warnings were observed in logs during or after the request.
=== Additional Notes
The environment was explicitly switched to the 6.9.4 tag from wordpress-
develop and rebuilt before testing.
Debug logging was enabled, but no warnings related to stdClass::$id or
stdClass::$post_parent were generated.
This suggests the issue may be environment-specific, dependent on
additional factors (e.g., plugins, configuration), or not reproducible in
a clean setup.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64921#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list