[wp-trac] [WordPress Trac] #45677: REST Autosaves Controller creating extra instance of a post type REST controller
WordPress Trac
noreply at wordpress.org
Tue Oct 8 13:41:45 UTC 2019
#45677: REST Autosaves Controller creating extra instance of a post type REST
controller
---------------------------------------------+-----------------------------
Reporter: pat@… | Owner:
| TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: REST API | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-----------------------------
Changes (by kadamwhite):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"46435" 46435]:
{{{
#!CommitTicketReference repository="" revision="46435"
REST API: Ensure rest_controller instantiates the post type's declared
REST controller class.
Ensures that the ::get_rest_controller() method will always return an
instanceof the expected controller class, or null.
Removes unused private static property $post_type_controllers.
Props dlh, TimothyBlynJacobs.
Fixes #45677.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45677#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list