[wp-trac] [WordPress Trac] #47578: Call static methods the right way

WordPress Trac noreply at wordpress.org
Wed Jun 26 16:57:40 UTC 2019


#47578: Call static methods the right way
--------------------------+-----------------------
 Reporter:  andizer       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.3
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 Thanks for the updated patch, one last adjustment needed. Those
 replacements should use `$server::get_compact_response_links()` to ensure
 that a subclassed `WP_REST_Server` that replaces the
 `get_compact_response_links` method has its changes respected.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47578#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list