[wp-trac] [WordPress Trac] #50012: REST API: Fields filter does not work with "object" collection responses

WordPress Trac noreply at wordpress.org
Sun Jun 8 10:21:08 UTC 2025


#50012: REST API: Fields filter does not work with "object" collection responses
-------------------------------------------------+-------------------------
 Reporter:  TimothyBlynJacobs                    |       Owner:  SirLouen
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  REST API                             |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-test-info has-unit-    |     Focuses:
  tests dev-feedback                             |
-------------------------------------------------+-------------------------

Comment (by sandeepdahiya):

 == Test Report
 === Description
 ✅This report validates that the indicated patch works as expected.

 Patch tested: [https://github.com/WordPress/wordpress-
 develop/pull/8891.diff Patch-8891]

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Firefox 139.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Actual Results
 1.  Before the patch:returned empty results.
 2.  ✅ Issue resolved with patch.


 {{{
 "category": {
 "name": "Categories"
 },
 "post_tag": {
 "name": "Tags"
 },
 "nav_menu": {
 "name": "Navigation Menus"
 },
 "wp_pattern_category": {
 "name": "Pattern Categories"
 }
 }}}

 === Additional Notes
 - Image: [https://ibb.co/VYLrp3CC Results after patch]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50012#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list