Opened 3 years ago
Closed 3 years ago
#54422 closed defect (bug) (fixed)
WP_REST_Templates_Controller does not respect the fields param
Reported by: | spacedmonkey | Owned by: | spacedmonkey |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | REST API | Keywords: | has-patch has-unit-tests |
Focuses: | rest-api | Cc: |
Description
WP_REST_Templates_Controller does not respect the fields param. The prepare_item_for_response method was not implemented correctly.
Change History (8)
This ticket was mentioned in PR #1870 on WordPress/wordpress-develop by spacedmonkey.
3 years ago
#1
- Keywords has-patch has-unit-tests added; needs-patch removed
This ticket was mentioned in Slack in #core-restapi by spacedmonkey. View the logs.
3 years ago
TimothyBJacobs commented on PR #1870:
3 years ago
#4
Thanks for putting this together @spacedmonkey. Let's rename the test classes and test files to follow the standards while we're at it.
hellofromtonya commented on PR #1870:
3 years ago
#5
Let's rename the test classes and test files to follow the standards while we're at it.
I took care of renaming file and test classes in commit https://github.com/WordPress/wordpress-develop/pull/1870/commits/27c3bb6af7fb37906f22c7974613b194159302d3.
TimothyBJacobs commented on PR #1870:
3 years ago
#6
Thanks @hellofromtonya!
Trac ticket: https://core.trac.wordpress.org/ticket/54422