[wp-trac] [WordPress Trac] #40988: Use objects for `get_item_schema()` calls
WordPress Trac
noreply at wordpress.org
Sun Dec 3 22:32:04 UTC 2017
#40988: Use objects for `get_item_schema()` calls
-------------------------+------------------------------------
Reporter: schlessera | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: rest-api, performance
-------------------------+------------------------------------
Comment (by joehoyle):
I think an easy implementation here would be to just use either a `static`
variable, or an instance var as a cache, as once a class is instantiated,
it shouldn't ever need to change the return of `get_item_schema`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40988#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list