[wp-trac] [WordPress Trac] #57749: In REST APIs, only prime meta data if there are registered keys

WordPress Trac noreply at wordpress.org
Thu Jul 18 22:25:30 UTC 2024


#57749: In REST APIs, only prime meta data if there are registered keys
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  REST API                             |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:  rest-api,
  testing-info                                   |  performance
-------------------------------------------------+-------------------------
Changes (by antonvlasenko):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests has-
     testing-info


Comment:

 I've submitted a [https://github.com/WordPress/wordpress-develop/pull/7024
 PR] that should address the issue described in this Trac ticket.

 **Steps to test:**
 1. **Review the code:** Check the changes for correctness and adherence to
 coding standards.
 2. **Run unit tests:** Ensure all GitHub CI test jobs pass successfully.
 3. **Test API endpoints:** Make REST API requests to the following
 endpoints and verify you receive valid responses:
         - `/wp/v2/comments`
         - `/wp/v2/posts`
         - `/wp/v2/categories`
         - `/wp/v2/tags`

 Since this PR focuses on optimization without introducing new
 functionality, creating more specific testing steps is challenging.

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


More information about the wp-trac mailing list