[wp-trac] [WordPress Trac] #61970: Fatal error: Attempt to read property "ID" on null in /src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
WordPress Trac
noreply at wordpress.org
Mon Oct 14 21:42:44 UTC 2024
#61970: Fatal error: Attempt to read property "ID" on null in /src/wp-includes
/rest-api/endpoints/class-wp-rest-autosaves-controller.php
-------------------------------------------------+-------------------------
Reporter: antonvlasenko | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses: template,
testing-info | rest-api
-------------------------------------------------+-------------------------
Comment (by antonvlasenko):
== Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/7272
=== Environment
- WordPress: 6.7-beta2-59195-src
- PHP: 8.3.3
- Server: Apache/2.4.57 (Unix) PHP/8.3.3
- Database: mysqli (Server: 5.7.43 / Client: mysqlnd 8.3.3)
- Browser: Safari 18.0 (macOS)
- Theme: Twenty Twenty-Four 1.2
- MU-Plugins: None activated
- Plugins:
* Datetime
* Gutenberg 19.1.0
* WordPress Beta Tester 3.5.3
=== Actual Results
- ✅ Template revisisions endpoint returns correct HTTP response code
(400) for files based templates and template parts.
- ✅ Template autosaves endpoint returns correct HTTP response code (400)
for files based templates and template parts.
=== Supplemental Artifacts
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61970#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list