[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
Wed Jan 15 12:44:59 UTC 2025


#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:  swissspidy
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.8
Component:  REST API                             |     Version:  6.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-        |     Focuses:  template,
  testing-info                                   |  rest-api
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * owner:  (none) => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59605" 59605]:
 {{{
 #!CommitTicketReference repository="" revision="59605"
 REST API: Improve autosave and revision endpoints for templates and
 template parts.

 Fixes those endpoints for file-based templates and template parts, as
 templates based on theme files can't be revisioned or autosaved.

 Props antonvlasenko, swissspidy, spacedmonkey, kadamwhite.
 Fixes #61970.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61970#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list