Make WordPress Core

Changes between Version 14 and Version 19 of Ticket #60131


Ignore:
Timestamp:
02/07/2024 02:20:55 AM (10 months ago)
Author:
ramonopoly
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60131 – Description

    v14 v19  
    66
    77
    8 Originally, global styles were a bit new and had the following characteristics:
     8The Global styles REST response has the following characteristics:
    99
    10 - Didn't, and still doesn't, return excerpt, content, guid fields
    11 - Had to do some JSON parsing when preparing the response
     10- Doesn't return excerpt, content, guid fields
     11- Does some JSON parsing when preparing the response
    1212
    1313In 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.
     
    1616For 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.
    1717
    18 Now that global styles have "settled" however, and shares more methods with `WP_REST_Posts_Controller` amd `WP_REST_Revisions_Controller`, it makes sense to change the base classes for more consistent interface, less code and less maintenance burden.
     18Now 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.
    1919
    2020See discussion and related PRs: