Opened 5 years ago
Closed 5 years ago
#54520 closed defect (bug) (fixed)
Ensure that rest_after_insert_ actions are fired in template REST API controllers
| Reported by: | spacedmonkey | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | REST API | Version: | 5.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Change History (5)
This ticket was mentioned in PR #1954 on WordPress/wordpress-develop by spacedmonkey.
5 years ago
#1
- Keywords has-patch added
This ticket was mentioned in Slack in #core-restapi by spacedmonkey. View the logs.
5 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/54520