Changes between Version 14 and Version 19 of Ticket #60131
- Timestamp:
- 02/07/2024 02:20:55 AM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #60131 – Description
v14 v19 6 6 7 7 8 Originally, global styles were a bit new and hadthe following characteristics:8 The Global styles REST response has the following characteristics: 9 9 10 - D idn't, and still doesn't,return excerpt, content, guid fields11 - Had to dosome JSON parsing when preparing the response10 - Doesn't return excerpt, content, guid fields 11 - Does some JSON parsing when preparing the response 12 12 13 13 In other words, the functionality was "special" enough not to warrant extending the base controller instead of using WP_REST_Posts_Controller. Also, global styles were new and evolving. … … 16 16 For revisions especially, more code was required to override the parent class's functions, and having a stand alone class left more elbow room for subsequent tweaks and changes. 17 17 18 Now that global styles have "settled" however, and shares more methods with `WP_REST_Posts_Controller` a md `WP_REST_Revisions_Controller`, it makes sense to change the base classes for more consistent interface, less code and less maintenance burden.18 Now that global styles have "settled" however, and shares more methods with `WP_REST_Posts_Controller` and `WP_REST_Revisions_Controller`, it makes sense to change the base classes for more consistent interface, less code and less maintenance burden. 19 19 20 20 See discussion and related PRs: