[wp-trac] [WordPress Trac] #54520: Ensure that rest_after_insert_ actions are fired in template REST API controllers
WordPress Trac
noreply at wordpress.org
Fri Nov 26 10:52:43 UTC 2021
#54520: Ensure that rest_after_insert_ actions are fired in template REST API
controllers
--------------------------+--------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: REST API | Version: 5.8
Severity: normal | Keywords:
Focuses: |
--------------------------+--------------------
The template REST API controller, does not extend the post controller
class. So the dynamic action `rest_after_insert_$this->post_type` is never
fired. The `WP_REST_Templates_Controller` class should be updated to
include this action.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54520>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list