#54595 closed defect (bug) (fixed)
The get_theme_item method should respect fields param
| Reported by: | spacedmonkey | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | REST API | Version: | 5.9 |
| Severity: | normal | Keywords: | has-patch has-unit-tests commit |
| Cc: | Focuses: | rest-api |
Description
The get_theme_item method in the WP_REST_Global_Styles_Controller does not respect the fields param context filtering.
Change History (9)
This ticket was mentioned in PR #2027 on WordPress/wordpress-develop by spacedmonkey.
5 years ago
#1
#2
@
5 years ago
- Milestone Awaiting Review → 5.9
As WP_REST_Global_Styles_Controller is introduced in 5.9, moving this into the 5.9 milestone.
peterwilsoncc commented on PR #2027:
5 years ago
#3
The test Tests_Rewrite::test_url_to_postid_custom_post_type failed in PHP 7.2 only, so I have re-run them to see if it was a random error/time based.
Would it be possible to put in some unit tests to ensure the change is working as expected?
spacedmonkey commented on PR #2027:
5 years ago
#5
Added unit tests.
hellofromtonya commented on PR #2027:
5 years ago
#6
@spacedmonkey These same changes will be needed in Gutenberg to avoid these changes from being overwritten during a backport update.
#7
@
5 years ago
- Keywords has-unit-tests commit added; needs-unit-tests removed
Marking PR 2027 for commit.
spacedmonkey commented on PR #2027:
5 years ago
#9
Merged!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/54595