Skip to content

REST API logic in Optimization Detective can be encapsulated into a ~static~ class #1859

@westonruter

Description

@westonruter

Feature Description

Optimization Detective currently has static classes for OD_Storage_Lock and OD_URL_Metrics_Post_Type, but it has a rest-api.php includes file with global functions and constants. The REST API logic would make sense to also put into a static class so there is consistency. It would also help with reducing the API surface for functions not needing to be public.

Metadata

Metadata

Assignees

Labels

No fields configured for Enhancement.

Projects

Status

Done 😃

Relationships

None yet

Development

No branches or pull requests

Issue actions