[wp-trac] [WordPress Trac] #34768: Mark WP_REST_Server::get_raw_data as static

WordPress Trac noreply at wordpress.org
Mon Nov 23 04:09:49 UTC 2015


#34768: Mark WP_REST_Server::get_raw_data as static
-------------------------+-----------------------------
 Reporter:  rmccue       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  Awaiting Review
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 This isn't linked to any state in the server instance, and would be handy
 to use outside of the server class (such as [https://github.com/WP-
 API/OAuth1/issues/95 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34768>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list