[wp-trac] [WordPress Trac] #45677: REST Autosaves Controller creating extra instance of a post type REST controller
WordPress Trac
noreply at wordpress.org
Thu Aug 15 17:17:39 UTC 2019
#45677: REST Autosaves Controller creating extra instance of a post type REST
controller
-------------------------------------+--------------------------------
Reporter: pat@… | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: REST API | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: rest-api
-------------------------------------+--------------------------------
Comment (by TimothyBlynJacobs):
Since we need a shared instance to support #40383, I decided to drop the
constructor parameter for the parent post type controller and instead
always fetch it through the static
`WP_REST_Posts_Controller::get_for_post_type`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45677#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list