#34768 closed enhancement (fixed)
Mark WP_REST_Server::get_raw_data as static
Reported by: | rmccue | Owned by: | rmccue |
---|---|---|---|
Milestone: | 4.4 | Priority: | low |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | needs-patch |
Focuses: | Cc: |
Description
This isn't linked to any state in the server instance, and would be handy to use outside of the server class (such as in authentication).
This doesn't break BC (as you can call static methods via $this->method
fine), but it's also not technically a bug, so potentially too late for 4.4.
Change History (4)
Note: See
TracTickets for help on using
tickets.
As per https://wordpress.slack.com/archives/core/p1448251995001841, this can be added before RC.